Skip to main content

Exim Configuration Editor

Comments

6 comments

  • cPanelMichael
    Hello, The following post from another analyst might help:
    The X-AntiAbuse headers are added by the following in the routers in exim: headers_add = "${perl{mailtrapheaders}}" I was able to remove these headers in testing, but this required basically a complete re-write of Section: POSTMAILCOUNT in Exim's advanced editor as the editor does not let you easily edit these default routers. Basically, I copied the whole section, renamed the routers, commented out the headers_add lines here and pasted the whole lot into the POSTMAILCOUNT input window in Exim advanced editor. --------------------- # # Lookup host router for remote smtp and ignores verisign site finder 'service' # and uses domain keys # This matches lookup exactly except we look for X-Boxtrapper: so we can determine # what is a boxtrapper generated message in the log. Note: there is nothing to # prevent X-Boxtrapper from being added to non-boxtrapper messages so this is for # logging reasons only # boxtrapper_verify_dkim_lookuphost_new: driver = dnslookup domains = ! +local_domains condition = "${if eq {$h_X-Boxtrapper:}{}{0}{1}}" #ignore verisign to prevent waste of bandwidth ignore_target_hosts = +loopback : 64.94.110.0/24 require_files = "+/var/cpanel/domain_keys/private/${sender_address_domain}" # headers_add = "${perl{mailtrapheaders}}" transport = dkim_remote_smtp # # Lookup host router for remote smtp and ignores verisign site finder 'service' and uses domain keys # dkim_lookuphost_new: driver = dnslookup domains = ! +local_domains #ignore verisign to prevent waste of bandwidth ignore_target_hosts = +loopback : 64.94.110.0/24 require_files = "+/var/cpanel/domain_keys/private/${sender_address_domain}" # headers_add = "${perl{mailtrapheaders}}" transport = dkim_remote_smtp # # Lookup host router for remote smtp and ignores verisign site finder 'service' # This matches lookup exactly except we look for X-Boxtrapper: so we can determine # what is a boxtrapper generated message in the log. Note: there is nothing to # prevent X-Boxtrapper from being added to non-boxtrapper messages so this is for # logging reasons only # boxtrapper_verify_lookuphost_new: driver = dnslookup domains = ! +local_domains condition = "${if eq {$h_X-Boxtrapper:}{}{0}{1}}" #ignore verisign to prevent waste of bandwidth ignore_target_hosts = +loopback : 64.94.110.0/24 # headers_add = "${perl{mailtrapheaders}}" transport = remote_smtp # # Lookup host router for remote smtp and ignores verisign site finder 'service' # lookuphost_new: driver = dnslookup domains = ! +local_domains #ignore verisign to prevent waste of bandwidth ignore_target_hosts = +loopback : 64.94.110.0/24 # headers_add = "${perl{mailtrapheaders}}" transport = remote_smtp # This router routes to remote hosts over SMTP by explicit IP address, # given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs # require this facility, which is why it is enabled by default in Exim. # If you want to lock it out, set forbid_domain_literals in the main # configuration section above. # # Literal Transports .. ignores verisigns sitefinder service # literal_new: driver = ipliteral domains = ! +local_domains # headers_add = "${perl{mailtrapheaders}}" ignore_target_hosts = +loopback : 64.94.110.0/24 transport = remote_smtp -------------------
    0
  • thealien
    What is the "supported" cpanel way of removing these headers ?
    0
  • cPanelMichael
    There's no supported method, however there is a workaround referenced in my previous response. Thank you.
    0
  • brsnik
    When the server gets restarted, settings are overwritten. Headers are shown again... What is a way to change it without it getting overwritten??
    0
  • cPanelMichael
    When the server gets restarted, settings are overwritten. Headers are shown again...

    Could you let us know the specific steps you took, and what in-particular was overwritten? Thank you.
    0
  • motanica
    Hello, The correct way to do this, is I guess, editing the perl script that generate headers. (don't forget to make a backup of this file before editing)
    nano /etc/exim.pl.local
    Then, you carefully should be able to search (ctrl+w) and modify all variables containing : "X-AntiAbuse" After restarting that config may not be overwritten.
    0

Please sign in to leave a comment.