Configuring the SMTP Relay Server on Your Linux Server Using Simple Control Panel
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 Simple Control Panel
- Access your Linux server through SSH. For more information on how to access your server through SSH, see: How do I access my Linux dedicated server using SSH?
- 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?.
- Enter the following line into /etc/postfix/main.cf using a text editor of your choice:
relayhost = yourservername.secureserver.netwhere yourservername is the mail server listed in the Hosting Control Center.
- The Postfix mail service will need to be restarted for the changes to take effect. Use the following commands to
restart the Postfix mail service on your server:
service postfix stop
service postfix start - Use the following command to check the Postfix SMTP relay server setting:
cat /etc/postfix/main.cf | grep relayhostIf the SMTP relay server is configured properly the command should return the following:relayhost = yourservername.secureserver.netwhere yourservername is the mail server listed in the Hosting Control Center.




