This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.
Differences between revisions 4 and 5
Revision 4 as of 2006-05-18 11:55:04
Size: 380
Comment: Add headers, mark iptables Linux-only
Revision 5 as of 2007-06-11 23:48:21
Size: 541
Editor: lns-bzn-33-82-252-12-240
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:

= using socat =

You can achieve the same result:

{{{
socat tcp4-listen:109,setuid=nobody,fork,reuseaddr tcp4-connect:localhost:110,bind=localhost &}}}

Listening on additional ports

Here's a little trick to get servers to listen on additional ports. This can be used for SMTP as well or any other protocol.

with Linux

This requires netfilter compiled into the kernel or loaded as module and the user-space iptables command:

iptables -v -t nat -A PREROUTING -p tcp -j REDIRECT --dport 109 --to-ports 110

using socat

You can achieve the same result:

socat tcp4-listen:109,setuid=nobody,fork,reuseaddr tcp4-connect:localhost:110,bind=localhost &

None: Iptables (last edited 2009-03-15 22:35:09 by localhost)