(dv) Add an Alternate SMTP Mail Port
TIP:
This article also appears in our wiki. Help us keep our "(dv) Add an Alternate SMTP Mail Port" article updated by joining the wiki. Click on the link to get started.
Often Media Temple customers find themselves unable to send mail using the default SMTP port 25. Usually this happens because the customer's internet connection is being limited by the following:
- Restrictive firewalls are usually put in place where the public is provided access to the Internet. Locations like coffee shops and hotels usually block port 25.
- It is becoming very common for Internet Service Providers (ISP's) to block outgoing mail on port 25 in an effort to stem the amount of spam coming from their networks.
Enable Alternate Port 587 for (dv) Dedicated-Virtual 3.5 Servers:
NOTE:
This option only applies to (dv) 3.5 servers. This will be enabled for all domains and IP Addresses on your service. For more information please visit http://kb.parallels.com/en/3477
For information on how to do this manually please visit http://kb.parallels.com/en/5568
- Login to Plesk
- Click on Server
- Click on Mail
- Check box for Enable message submission
- You should now be able to send mail through your server on port 587.
Enable Alternate Port other than 25 or 587 (via SSH) for (dv) Dedicated-Virtual 2.0/3.0/3.5 Servers:
STOP:
This provides a way to get your SMTP server to listen on port 25 and an additional port at the same time. This workaround has been tested with Plesk versions 7.5.2 and 7.5.3. Customers should proceed with caution as this workaround is UNSUPPORTED by Media Temple and Plesk. There is a high probability that this will cease to work or even break your server if you attempt to update Plesk after applying the workaround. You will need root access via SSH to your server, if you don't already have access you can set/change your root password in the AccountCenter.
You can find additional documentation at http://www.gobdg.com/blog/2009/06/how-to-add-an-additional-outgoing-mail-smtp-port-mediatemple-on-plesk/
- Make a copy of /etc/xinetd.d/smtp_psa. For this walkthrough the new filename created is smtp_nonstandard. A command like this should work:
cp /etc/xinetd.d/smtp_psa /etc/xinetd.d/smtp_nonstandard - Add these lines to the copy you just made:
vi /etc/xinetd.d/smtp_nonstandard type = UNLISTED port = 2525 - and change the service name to match the name of the file. A sample smtp_nonstandard looks like this:
service = smtp_nonstandard type = UNLISTED socket_type = stream protocol = tcp port = 2525 wait = no disable = no user = root instances = UNLIMITED server = /var/qmail/bin/tcp-env server_args = -Rt0 /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true - Restart xinetd:
/etc/init.d/xinetd restart - You should now be able to send mail through your server on port 2525. You may pick a different port if you use this method. We suggest choosing a high port number to avoid using commonly used ports on the internet.
Revisions:
08-04-2009: Updated Title, and made it clear the SSH method applies for all (dv) Dedicated-Virtual Servers.
10-02-2008: Added information about enabling port 587 from Plesk. Thanks Joe Schram!
Fields marked with an asterisk(*) are required. Comment on this article