{"id":18,"date":"2009-12-15T11:09:19","date_gmt":"2009-12-15T16:09:19","guid":{"rendered":"http:\/\/localhost\/wordpress\/?p=18"},"modified":"2011-11-25T00:03:52","modified_gmt":"2011-11-25T05:03:52","slug":"add-an-alternate-smtp-mail-port","status":"publish","type":"post","link":"https:\/\/xfloyd.net\/blog\/?p=18","title":{"rendered":"Add an Alternate SMTP Mail Port"},"content":{"rendered":"<p>Often Media Temple customers find themselves unable to send mail using the default <a onclick=\"showHelpTip(event, '<b>SMTP<\/b>SMTP is a relatively simple, text-based protocol, in which one or more recipients of a message are specified (and in most cases verified to exist) along with the message text and possibly other encoded objects. The message is then transferred to a remote server using a procedure of queries and responses between the client and server. Either an end-user\\&#8217;s email client, a.k.a. MUA (Mail User Agent), or a relaying server\\&#8217;s MTA (Mail Transport Agents) can act as an SMTP client.&#8217;); return false;&#8221; href=&#8221;javascript:void(0)&#8221;>SMTP<\/a> port 25. Usually this happens because the customer&#8217;s internet connection is being limited by the following:<\/p>\n<ul>\n<li>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.<\/li>\n<li>It is becoming very common for Internet Service Providers (ISP&#8217;s) to block outgoing mail on port 25 in an effort to stem the amount of spam coming from their networks.<\/li>\n<\/ul>\n<h3>Enable Alternate Port 587 for (dv) Dedicated-Virtual 3.5 Servers:<\/h3>\n<div>\n<h3>NOTE:<\/h3>\n<p>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 <a href=\"http:\/\/kb.parallels.com\/en\/3477\">http:\/\/kb.parallels.com\/en\/3477<\/a><\/p>\n<p>For information on how to do this manually please visit <a href=\"http:\/\/kb.parallels.com\/en\/5568\">http:\/\/kb.parallels.com\/en\/5568<\/a><\/p>\n<ol>\n<li>Login to <a onclick=\"showHelpTip(event, '<b>Plesk<\/b>Plesk is a software package which allows a server administrator to set up new websites, e-mail accounts, and DNS entries through a web-based interface. The administrator can create client and site templates, which predetermine resource allocation parameters for the domains and\/or clients.&#8217;); return false;&#8221; href=&#8221;javascript:void(0)&#8221;>Plesk<\/a><\/li>\n<li>Click on <span>Server <\/span><\/li>\n<li>Click on <span>Mail <\/span><\/li>\n<li>Check box for <span>Enable message submission<\/span><\/li>\n<li>You should now be able to send mail through your server on port 587.<\/li>\n<\/ol>\n<h3>Enable Alternate Port other than 25 or 587 (via <a onclick=\"showHelpTip(event, '<b>SSH<\/b>Secure Shell or ssh is a network protocol that allows data to be exchanged over a secure channel between two computers.&#8217;); return false;&#8221; href=&#8221;javascript:void(0)&#8221;>SSH<\/a>) for (dv) Dedicated-Virtual 2.0\/3.0\/3.5 Servers:<\/h3>\n<p>&nbsp;<\/p>\n<div>\n<h3>STOP:<\/h3>\n<p>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 <span style=\"color: #ff0000;\">UNSUPPORTED<\/span> 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 <a onclick=\"showHelpTip(event, '<b>root<\/b>root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser.&#8217;); return false;&#8221; href=&#8221;javascript:void(0)&#8221;>root<\/a> access via SSH to your server, if you don&#8217;t already have access you can set\/change your root password in the <a href=\"https:\/\/accountcenter.mediatemple.net\/\" target=\"_NEW\">AccountCenter<\/a>.<\/p>\n<p>You can find additional documentation at <a href=\"http:\/\/www.gobdg.com\/blog\/2009\/06\/how-to-add-an-additional-outgoing-mail-smtp-port-mediatemple-on-plesk\/\">http:\/\/www.gobdg.com\/blog\/2009\/06\/how-to-add-an-additional-outgoing-mail-smtp-port-mediatemple-on-plesk\/<\/a><\/p>\n<\/div>\n<ol>\n<li>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: <code><code>\ufffd  <\/code><\/code>&nbsp;\n<pre><code>cp \/etc\/xinetd.d\/smtp_psa \/etc\/xinetd.d\/smtp_nonstandard<\/code><\/pre>\n<\/li>\n<li>Add these lines to the copy you just made:\n<pre><code><a onclick=\"showHelpTip(event, '<b>vi<\/b>Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.'); return false;\" href=\"javascript:void(0)\">vi<\/a> \/etc\/xinetd.d\/smtp_nonstandard type = UNLISTED port = 2525<\/code><\/pre>\n<\/li>\n<li>and change the service name to match the name of the file. A sample smtp_nonstandard looks like this:\n<pre><code>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<\/code><\/pre>\n<\/li>\n<li>Restart xinetd:\n<pre><code>\/etc\/init.d\/xinetd restart<\/code><\/pre>\n<\/li>\n<li>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. <code><br \/>\n<\/code><\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Often Media Temple customers find themselves unable to send mail using the default SSH) for (dv) Dedicated-Virtual 2.0\/3.0\/3.5 Servers: &nbsp; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":7,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":510,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/510"}],"wp:attachment":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}