[% USE Whostmgr; SET hasroot = Whostmgr.hasroot(); %] [% WRAPPER 'master_templates/master.tmpl' theme="yui" breadcrumburl = '/scripts/editmx' scripts = ['/js/hidecells_optimized.js', '/js/sorttable_optimized.js'] extrastyle = ' #mxedit { margin-left:25px; } input.mx { width: 40em; } ul.mxcheck_autolist { list-style-type:disc; margin-top: 0; } .mxcheck_autolist li { padding: 3px 0; } ul.mx_list{ margin: 0 5px 15px; padding: 0; } ul.mx_list li{ list-style:disc; padding: 0; margin:3px 0 0 10px; } #mx_input_table_and_table lable{ font-size:11px; } .label_wraps{ margin: 0 0 10px 0; border-bottom: 1px solid #ccc; padding-bottom: 10px; } .label_txt{ font-size: 12px; } .highlight-accordian-desc{ padding-top: 5px; } label { cursor: pointer } #mxlisttb tr:last-child td { border-bottom: 1px solid #ccc; } ' -%] [% IF data.accessdenied %] Access denied. You don't seem to own [% data.domain %]. [% ELSE %] [% IF data.uses_mail_worker; PROCESS '_edit_dns_zone_linked_node_warning.tmpl' username=data.username domain=data.domain hasroot=hasroot; ELSE; -%]

The lowest numbered MX entry currently points to: [% data.mxentries.0.mxentry.replace('\.$','') %]

[% IF data.downer && data.downer != 'root' %] [% INCLUDE mxcheck_include.tmpl %] [% END %]

MX Entries

[% FOREACH entry IN data.mxentries -%] [% SET ttlmatch = entry.premx.match('^\s*\S+\s+(\d+)\s') -%] [% SET ttl = ttlmatch ? (ttlmatch.0 || data.zonettl) : data.zonettl -%] [% END %]
TTL Priority MX Destination Actions  
Delete
Delete (new)

Add Another MX Entry Field


[% END #data.uses_mail_worker -%] [% END #data.accessdenied -%] [% END #wrapper -%]