VPS
Main PagecPanel and DirectAdmin LicensingServer Management PlansVirtual Private ServersDedicated Servers
Control Panel Licensing
ServerTune ResellersResellersSpecial PromotionsServerTune SpecialsHomeAbout ServerTuneContact usTechnical SupportKB
ServerTune Main Page
Space
Space
Our most popular service/products:

SPECIAL PROMOTION:
Order any of our dedicated servers and get $20 OFF the base price.. Click here for more info...

Issues, Tips, and Solutions

How is ServerTune different from other companies?

*** Accessing ServerTune's Knowledgebase

Space
Search:    Advanced search
Browse by category:
HowTo :: configure Qmail to run on another Port on Plesk powered server?
Printer Friendly
email to a friend
Add comment Add comment
Views: 502
Votes: 0
Comments: 0
Posted: 30 Jun, 2007
by: Support T.
* * * * *
Updated: 29 Jun, 2007
by: Support T.
SSH to the server and do the following: Create another copy of the smtp_psa file:
  • cp /etc/xinetd.d/smtp_psa /etc/xinetd.d/smtp2_psa

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:
  • /etc/init.d/xinetd restart
Now, run this command and you should see see SMTP listening on ports 25 and and 26:
  • netstat -anp | grep xinetd
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.

Other articles in this Category
document How can I change queue lifetime for Qmail?
document HowTo :: compile in patches to Qmail with Plesk?



RSS