Activities

December 2012
M T W T F S S
« Nov   Jan »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Plesk : Adding multiple smtp port

It’s a common scenario, ISP is blocking all the outgoing access to the standard smtp port (25) for home internet users. This mostly done for reducing spam emails send from home hosted smtp servers. However it’s a good defense for spammers and would help to increase the ISP IP reputation.

However it may cause frustration of some users those are badly used ONLY Outlook for emails. They don’t even know about the web option to check emails when they are out off office.

Here are the steps to configure one additional smtp port in Plesk Based server.

a. Copy the file /etc/xinetd.d/smtp_psa and create new one for using new port. In this example I uses 25250 port.

 cp /etc/xinetd.d/smtp_psa /etc/xinetd.d/smtp_psa_25250   <code>

b. <strong>Update the new service name (<strong>service smtp25250</strong>) in the copied file and add the new port entry</strong> ( port  = 25250). My file will looks like as shown below

<code>[root@web301 ~]# vi /etc/xinetd.d/smtp_psa_25250
[root@web301 ~]# cat /etc/xinetd.d/smtp_psa_25250
service smtp25250
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        port            = 25250
        disable         = no
        user            = root
        instances       = UNLIMITED
        env             =  SMTPAUTH=1 POPAUTH=1 POPLOCK_TIME=20 SHORTNAMES=1
        server          = /var/qmail/bin/tcp-env
        server_args     = -Rt0 /usr/sbin/rblsmtpd -r sbl-xbl.spamhaus.org /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
}
[root@web301 ~]#

c. Update the the service file (/etc/services) and add new line at the bottom.. Ensure the service name what you’ve added in “etc/xinetd.d/smtp_psa_25250” should be same as on this file too.

 smtp25250   25250/tcp   # new SMTP port

d. Restart the xinetd service to start the new port in listening mode.

[root@web301 gitlabhq]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
[root@web301 gitlabhq]#

Verify the port

[root@web301 ~]# netstat -nlp|grep 25250
tcp        0      0 0.0.0.0:25250               0.0.0.0:*                   LISTEN      31004/xinetd
[root@web301 ~]#

Enjoy….

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>