PDA

View Full Version : Listening on a second port


dschwab9
01-17-2004, 07:58 AM
How can I configure qmail to accept SMTP on two different ports? I need to also listen on port 2525 to bypass ISP's that block port 25.

Bookworm
01-17-2004, 09:57 AM
Not sure how helpful it will actually be, but Dave Sill, of Life With Qmail, wrote up a method that CAN run a second qmail-smtpd service on another port. (Again, I don't know how useful it will be to your purposes - it's mainly intended for internet network injection)

http://www.apress.com/article/articleDisplay.html?aID=14

Good luck with it.

BW

dschwab9
02-01-2004, 07:52 AM
I didn't have any luck with that.

Does anyone know if this can be done with IPTables? Map incoming connections on 2525 to 25 on localhost?

damon
04-21-2004, 05:25 AM
I didn't have any luck with that.

Does anyone know if this can be done with IPTables? Map incoming connections on 2525 to 25 on localhost?

Yes I think there'll be no problems with iptables. Something like this:

iptables -t nat -PREROUTING -p tcp --dport 2525 -j REDIRECT --to-port 25

_qmradmin
04-24-2004, 02:13 AM
I'm not positive, but I believe that you have to instruct qmail to listen on another port and then recompile it.

The smtp listening port seems to be specified in the following files:

In /usr/src/qmail/qmail-1.03/qmail-remote.c

In /usr/src/qmail/qmail-1.03/qmail-remote.8

That's just a guess.

Thanks,
QMRadmin