Enable Alternate Port other than 25 or 587 (via SSH) in 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

port = 2525

and change the service name to match the name of the file. A sample smtp_nonstandard looks like this:

service = smtp_nonstandard
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.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.