ServerTune Logo Dedicated Servers Colocation VPS Server Management ServerTune.com
 
ServerTune HomeAbout usContact usHelp DeskKnowledgebaseSpecialLIVE Chat ServerTune
DirectAdmin VPS Server Management

Value, Power, and Performance :: Dedicated Servers starting $89 /month

Dedicated Server Hosting

Click here to view photos from the conferences we attended.   *** Follow ServerTune on: ServerTune is on Facebook ServerTune is on Twitter
 
Browse by category   Search
 


HowTo :: configure Qmail to run on another Port on Plesk powered server?
Printer Friendly
email to a friend
Email to friend
Add comment Add comment
Views: 1837
Votes: 0
Comments: 0
Posted: 30 Jun, 2007
by: Customer Service :: S.
* * * * *
Updated: 29 Jun, 2007
by: Customer Service :: S.
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

Control Panel Licensing
cPanel Plesk Miva Merchant