Frequently Asked Questions

Configuring the SMTP Relay Server on Your Linux Server Using Simple Control Panel

Print this Article
Comment on this Article
Last Updated: December 23, 2009 7:33 PM

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

  1. 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?
  2. 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?.
  3. 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 Center.
  4. 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
  5. Use the following command to check the Postfix SMTP relay server setting:
    cat /etc/postfix/main.cf | grep relayhost
    If 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 Center.