If you have been affected by the recent block of outgoing mail on port 25 for our SoftLayer locations (Singapore, San Jose, Dallas, Washington DC , and Seattle), you may will be able to use the following to configure another server in Salt in Salt Lake City, New York, London , or Amsterdam to relay your email. Make sure that before you utilize this guide you purchase a new server via your account at https://control.vps.net. Please follow the steps below to complete this task.
**Please keep in mind that support cannot assist with the configuration of your new SMTP relay server unless you have purchased Enhanced or Ultimate.
We will first walk you through how to configure your current server to communicate with your new relay server on a port other than 25. Please use the correct follow the appropriate steps below based on the mail server you are currently using.
Navigate to the following location:
#> vi /etc/postfix/main.cf
Insert the following line and save:
relayhost = <IP_address_of_new_server>:587
#> postfix stop && postfix start #> /etc/init.d/postfix restart
- Log into WHM and navigate to Mail -> Server Configuration -> Exim Configuration Manager
- Inside the Basic Editor locate the Smarthost support option
- Insert the <IP_address_of_new_server> in the text box and SAVE
Now all All configurations have now been made to the current server and you can move to configuring the new server intended as the relay server. Please follow the steps below to configure your mail server on the new server.
Please ensure that this new server is installed with a RHEL/CentOS distrubution distribution able to support Exim mail server and do the following:
Install Exim mail server via yum:
#> yum install -y exim-mysql
Stop the Postfix and enable Exim server:
#> service postfix stop #> chkconfig postfix off
Set Exim as the default MTA:
#> alternatives --config mta There are 2 programs which provide 'mta'. Selection Command ----------------------------------------------- *+ 1 /usr/sbin/sendmail.postfix 2 /usr/sbin/sendmail.exim Enter to keep the current selection[+], or type selection number: 2
Set auto start on boot and start the exim service:
#> chkconfig exim on #> service exim start
Now that the Exim server is installed and running you must add the <IP_of_current_server> to the exim.conf file:
#> vi /etc/exim/exim.conf
Inside exim.conf locate "hostlist relay_from_hosts =" and add the IP of your current server and save the file:
hostlist relay_from_hosts = <IP_address_of_current_server>
**Please check how many IPs are assigned to the current server. Exim can send emails from more than one IP. All these IPs should be added to the Exim configuration on Relay side. The IPs must be separated by ":"
hostlist relay_from_hosts = 127.0.0.1 : <additional_ip> : <additional_ip> : <additional_ip>
#> service exim restart #> /etc/init.d/exim restart
You have now configured all mail on your server affected by the block of port 25 to utilize your recently configured SMTP relay server. Please test this by sending from your current server affected by the block and see if the mail is received.
- New relay server MUST have a valid hostname. You must use a fully-qualified domain name (FQDN) that contains two periods (for example: hostname.example.com).
- rDNS must be set on the new relay server IP
Add the New_Relay_Server_IP to the SPF record for every domain. Please reference the example below:
example.com IN TXT "v=spf1 a:<current_server_IP>mx:<new_relay_server_IP> ~all"
If you have Enhanced or Ultimate support, please feel free to contact us via a ticket through your Dashboard account and we will be able to assist you.