{"id":34,"date":"2009-09-18T13:47:48","date_gmt":"2009-09-18T17:47:48","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=34"},"modified":"2013-03-20T08:38:59","modified_gmt":"2013-03-20T12:38:59","slug":"howto-configure-alternate-smtp-port","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-configure-alternate-smtp-port","title":{"rendered":"HowTo: configure an alternate SMTP port in Plesk"},"content":{"rendered":"<p>How to configure <strong>alternate SMTP port OR change the SMTP port on a Plesk server<\/strong>?<\/p>\n<p>Sometimes some ISPs block port 25 for security reasons in which case, you need to open an alternate SMTP port on your server for your clients. <strong>Plesk do not offer a straight forward method of configuring an alternate SMTP port<\/strong>, instead you have to configure it manually.<\/p>\n<p>SMTP on Plesk servers runs under xinetd service and <strong>the location of the file is \/etc\/xinetd.d\/smtp_psa<\/strong>.<\/p>\n<p>In order to configure an alternate port say for example 2525, follow the below steps:<\/p>\n<p>1. Make a copy of file &#8220;smtp_psa&#8221; under the \/etc\/xinetd.d\/ directory<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># cp -p <\/span><span style=\"color: #0000ff;\">smtp_psa <\/span><span style=\"color: #0000ff;\">smtp_psa_new<\/span><\/pre>\n<\/blockquote>\n<p>2. Edit the smtp_psa_new file and replace the line<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">service smtp\r\nwith\r\nservice smtp_new<\/span><\/pre>\n<\/blockquote>\n<p>3. You now need to <strong>edit the \/etc\/services file<\/strong> and make sure the lines with port 2525 should look as follows:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">smtp_new \u00a0 \u00a0\u00a0 2525\/tcp \u00a0 \u00a0  #alternate SMTP port\r\nsmtp_new\u00a0\u00a0\u00a0\u00a0\u00a0 2525\/udp \u00a0 \u00a0\u00a0 #alternate SMTP port<\/span><\/pre>\n<\/blockquote>\n<p>4. Save the file and restart the xinetd service.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/etc\/init.d\/xinetd restart<\/span><\/pre>\n<\/blockquote>\n<p>SMTP service will now listen on port 2525 as well which you can verify using the &#8216;telnet&#8217; command:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># telnet yourserverip 2525<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>How to configure alternate SMTP port OR change the SMTP port on a Plesk server?<br \/>\nSometimes some ISPs block port 25 for security reasons in which case, you need to open an alternate SMTP port on your server for your clients. Plesk do not offer a straight forward method of configuring an alternate SMTP port, instead you have to configure it manually.<br \/>\nSMTP on Plesk servers runs under xinetd service and the location of the file is \/etc\/xinetd.d\/smtp_psa.<br \/>\nIn order to configure an alternate port say for example 2525, follow the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[786,1462,1463,787],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/34"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":9,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":2086,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions\/2086"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}