NEW VPS Plans

ServerTune provides -- managed and un-managed -- VPS hosting solutions at affordable prices to accommodate your personal and/or businesses needs.

Click here for more info ...

NEW VPS Plans

Click to hideClick to view
ServerTune

Browse by category

Search    |    Advanced search

HowTo :: configure Qmail to run on another Port on Plesk powered server?

SSH to the server and do the following: Create another copy of the smtp_psa file:

Change the service line in the new file from:
smtp_psa
to
smtp2_psa

Your file should look like this:

service smtp2 {
socket_type = stream
protocol = tcp
wait = no
disable = no
user = root
instances = UNLIMITED
server = /var/qmail/bin/tcp-env
server_args = /usr/sbin/rblsmtpd -r bl.spamcop.net /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
}

Edit /etc/services file with your favorite editor and add the tcp and udp lines for this service. The lines should look like this:

smtp2           26/tcp          mail
smtp2           26/udp          mail

Save the file and then run the following command:

Now, run this command and you should see see SMTP listening on ports 25 and and 26:

tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      6989/xinetd
tcp        0      0 0.0.0.0:26              0.0.0.0:*               LISTEN      6989/xinetd

Make the appropriate changes if you wish to run SMTP on a different Port than 26.

Printer Friendly
 
email to a friend
Email to friend
 
Add comment
Add comment
 
Views: 1931
 
Votes: 0
 
Comments: 0
 
Posted: 30 Jun, 2007 by: Customer Service S.
Updated: 08 Mar, 2011 by: Customer Service S.

Other articles in this Category

Article
Article
RSS