This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.
Differences between revisions 6 and 7
Revision 6 as of 2008-01-02 10:06:33
Size: 816
Editor: odnb-4d0aa275
Comment:
Revision 7 as of 2008-01-02 10:07:53
Size: 859
Editor: odnb-4d0aa275
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
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. However be aware that dovecot makes the insecure assumption that connections from local ip addresses are always "secured", that is, the requirement for TLS for plain text authentication won't be enforced - this obviously also will apply to connections forwarded using socat. 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. However be aware that Dovecot makes the insecure assumption that connections from local ip addresses are always "secured", that means, in particular, the requirement for TLS for plain text authentication won't be enforced - this obviously also will apply to connections forwarded using socat running on the same host.

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. However be aware that Dovecot makes the insecure assumption that connections from local ip addresses are always "secured", that means, in particular, the requirement for TLS for plain text authentication won't be enforced - this obviously also will apply to connections forwarded using socat running on the same host.

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)