Please ensure that this new server is installed with a RHEL/CentOS 6 distrubution able to support Exim mail server.
Ensure we have the latest EPEL repository RPM for CentOS 6 64-bit on the new server and do the following:then follow the steps below.
#> wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm #> rpm -ivh epel-release-6-8.noarch.rpm
Install Exim mail server via yum:
#> yum install -y exim-mysql
Stop the Postfix and enable Exim server:
#> service postfix stop #> chkconfig postfix off
Set Exim as the default MTA:
#> alternatives --config mta There are 2 programs which provide 'mta'. Selection Command ----------------------------------------------- *+ 1 /usr/sbin/sendmail.postfix 2 /usr/sbin/sendmail.exim Enter to keep the current selection[+], or type selection number: 2
Set auto start on boot and start the exim service:
#> chkconfig exim on #> service exim start
Now that the Exim server is installed and running you must add the <IP_of_current_server> to the exim.conf file:
#> vi /etc/exim/exim.conf
Inside exim.conf locate "hostlist relay_from_hosts =" and add the IP of your current server and save the file:
hostlist relay_from_hosts = <IP_address_of_current_server>
**Please check how many IPs are assigned to the current server. Exim can send emails from more than one IP. All these IPs should be added to the Exim configuration on Relay side. The IPs must be separated by ":"
hostlist relay_from_hosts = 127.0.0.1 : <additional_ip> : <additional_ip> : <additional_ip>
#> service exim restart #> /etc/init.d/exim restart