Skip to main content

How can make permanent changes in exim.conf?

Comments

2 comments

  • cPanelLauren
    You can not make any changes directly to the exim configuration file. All customizations need to be made through exim.conf.local where they will be retained once exim is rebuilt. Which instructions are you following?
    0
  • Nirjonadda
    Which instructions are you following?

    I followed the following instructions to remove the: X-Ham-Report from message header under WHM/CPanel but THIS DIDN'T WORK FOR ME. To complete this task you do need root access to your server by SSH to create the custom filter, and access to WHM to enable it. Here are the steps taken:
    • Login as root (or su root)
    • Create a file in /usr/local/cpanel/etc/exim/sysfilter/options
      • I named this file: remove_x_ham_report_header
    • Edit (nano) this file to include the code shown below
    • Save the file
    • Login to WHM
    • Under "Exim Configuration Manager" -> "Basic Editor" -> "Filters"
    • Near the bottom you need to enable the newly created filter (it'll be disabled by default), it should be named "Custom Filter: remove_x_ham_report_header"
    remove_x_ham_report_header code: #HamRemoval if $header_to: is "Unsubscribe email address" then headers remove "X-Ham-Report" deliver "Unsubscribe email address" endif
    0

Please sign in to leave a comment.