HOW TO FIX EXIM DEDICATED IP TO REPORT CORRECT DOMAIN

First step is to change the WHM/cPanel reverse DNS to state the correct domain name and IP in /etc/mail_reverse_dns

The syntax is IP then colon, space, and domain name similar to as shown here: XXX.XXX.XXX.XXX: domain.com

Now logged into WHM browse to WHM Home » Service Configuration » Exim Configuration Manager » Advanced Editor

Use your browser to search for "smtp_banner". Replace the existing entry in this field from:

"${primary_hostname} ESMTP Exim ${version_number}  \#${compile_number} ${tod_full} \n   We do not authorize the use of this system to transport unsolicited, \n   and/or bulk e-mail."

to the following - INCLUDE QUOTES! :

"${smtp_active_hostname} ESMTP Exim ${version_number} \#${compile_number} ${tod_full} \n We do not authorize the use of this system to transport unsolicited, \n and/or bulk e-mail."


Next, scroll down from that option until you see a blue text box that states "Add Additional Configuration Setting" Click on this box two times. In the first newly created drown-down field, select "smtp_active_hostname" and then enter:

${lookup{$interface_address}lsearch{/etc/mail_reverse_dns}{$value}{$primary_hostname}}



In the second newly created drown-down field, select "message_id_header_domain" and then enter:

$smtp_active_hostname

Finally, scroll to the very bottom of the advanced editor and click on "Save". This will allow you to save the custom rules that you have created and they should be maintained through updates and other changes.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

WHAT WE MANAGE AND FIREWALL FALSE POSITIVES

Relevant to dedicated servers and answering an inquiry from a dedicated server client:Certainly...

ADDING MEMCACHED TO CENTOS 6.5+ AND CENTOS 7+

Step 1: SSH into your server and fire this command yum install memcached.x86_64 Step 2: Next...

APACHE NOBODY ATTACK SCRIPT

The Apache Nobody attack script is useful in stopping those that are victims of Apache Nobody...

BOOT PARTITION FILLING UP

The boot partition can fill up with excess kernels causing the system to crash if the boot...

CLOUDFLARE RAILGUN SERVER INSTALLATION

Installing CloudFlares RailgunThe following tutorial considers that one is already a CloudFlare...

Powered by WHMCompleteSolution