SMTP - How To Scarper SMTP On A Dissimilar Or Extra Port In Linux With Plesk

August 12th, 2008

For one reason or some other some citizenry like to bunk their SMTP service on a port early than the standard Transmission control protocol port 25. Whether it’s to circuit their ISP’s firewall, furnish a sec instance of SMTP, or possibly merely to be dissimilar.

This article will show you a simple manner to do this on a Linux server scarperring the Plesk control panel.

In ‘/etc/xinetd.d/’ there is a file named smtp_psa, you will need to simulate this file to some other computer filename (in this example I’ll use smtp2_psa).

In this novel file, you will want to modify the line:

’service smtp’ to ’service smtp2′

One time this is finished, you will need to qualify your /etc/service file, and supply the smtp2 service:

But copy/paste the existent smtp line and change the gens and port (we’ll use port 26 in this example).

smtp2 26/tcp mail

smtp2 26/udp mail

Start xinetd.

# /etc/init.d/xinetd start

Check to get certain the novel port is nowadays hearing

# netstat -plunt |grep :26

That should return something like to

tcp 0 0 0.0.0.0:26 0.0.0.0:* Take heed 2345/xinetd

You can try out this connectedness from the external by nerve to telnet to port 26 on the server.

From a linux shell or Windows command prompt go in

# telnet 123.123.123.123 26

(be certain to supercede 123.123.123.123 with your server’s existent IP address)

If it’s successful it should return something like to

Racking 123.123.123.123…

Attached to hostname.domain (123.123.123.123).

Escape fictional character is ‘^]’.

220 hostname.domain.tld ESMTP

Go into ‘quit’ to give up the telnet academic session.

Leave a Reply