Configuring the SMTP Relay Server on Your Linux Server Using cPanel
Print this Article
Comment on this Article
NOTE: Before configuring your SMTP relay server, check the Hosting Control Center to see which mail server you should use. For more information, see What are the relay mail server settings on my dedicated or virtual dedicated server?.
To configure the SMTP relay server on your Linux server using cPanel:
- Access your Linux server through SSH. For more information on how to access your server through SSH, see:
- Gain root access to your server through SSH. For more information on how to gain root access to your server through SSH, see: How can I log in as 'root' on my dedicated server?.
- Within the Routers Configuration section in the /etc/exim.conf file, enter the following lines using a text editor of your choice:
send_to_smart_host:where yourmailserver is the mail server listed in the Hosting Control Center.
driver = manualroute
route_list = !+local_domains yourmailserver.secureserver.net
transport = remote_smtp - The Exim mail service will need to be restarted for the changes to take effect. Use the following commands to
restart the Exim mail service on your server:
service exim stop
service exim start - Use the following command to check the Exim SMTP relay server setting:
cat /etc/exim.conf | grep route_listIf the SMTP relay server is configured properly the command should return the following:route_list = !+local_domains yourmailserver.secureserver.netwhere yourmailserver is the mail server listed in the Hosting Control Center.




