Configuring the SMTP Relay Server on Your Linux Server Using Simple Control Panel
NOTE: Before configuring your SMTP relay server, check the Hosting Control Panel to see which mail server you should use. For more information, see What are the relay mail server settings on my dedicated or virtual private 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: Accessing a 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 server?.
- Enter the following line into /etc/postfix/main.cf using a text editor of your choice:
relayhost = [yourservername.secureserver.net]where yourservername is the mail server listed in the Hosting Control Panel.
- The Postfix mail service will need to be reloaded for the changes to take effect. Use the following command to reload the Postfix mail service on your server:
service postfix reload
- Use the following command to check the Postfix SMTP relay server setting:
grep relayhost /etc/postfix/main.cfIf the SMTP relay server is configured properly the command should return the following:relayhost = [yourservername.secureserver.net]where yourservername is the mail server listed in the Hosting Control Panel.