A “Smart Host” (also known as a relay host) is a type of mail relay server which allows an SMTP server to route e-mail to an intermediate mail server rather than directly to the recipient’s server. This improves the performance of your server and the reliability of your e-mail delivery.
Exim Server (Forwarding Server)
This server will be forwarding all emails to the SmartHost for relay for final delivery. If you are not using cPanel / WHM, then you will simply edit ‘/etc/exim.conf’ instead of using cPanel / WHM’s interface. However, if the server is running cPanel / WHM you must edit the configuration file through the GUI as cPanel / WHM will revert your changes automatically over time.
>> Edit Exim Configuration and add “smart_route:” details below the section labeled “ROUTERSTART”
>> Restart Exim Server
After the above configuration is saved, the Exim service should automatically restart. However, if it doesn’t you may restart it via command line manually:
/scripts/restartsrv_exim
Or
/etc/init.d/exim restart
Postfix Server (SmartHost)
Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail, intended as an alternative to the widely-used Sendmail MTA. Postfix is released under the IBM Public License 1.0 which is a free software license.
>> Installation
yum install postfix -y
>> Configuration
/etc/postfix/main.cf
Ensure the following lines match:
inet_interfaces = all
mynetworks = 127.0.0.0/8, REMOTE_IP_HERE
The inet_interfaces parameter specifies the network interface addresses that this mail system receives mail on and must be changed from “localhost” to “all”.
Uncomment the parameter mynetworks and add Remote Server’s IP to give the permission to relay messages through this server.
etc/postfix/master.cf
Make sure the following line is not commented:
submission inet n – n – – smtpd
>> Start Postfix
/etc/init.d/postfix start
chkconfig postfix on
Need expert assistance?
SupportPRO has a team of well-experienced professionals and we can assist you with the SmartHost setup. Feel free to contact us if you need assistance.
If you require help, contact SupportPRO Server Admin