How to configure dovecot imap to listen on multiple ports?

Jochen Bern Jochen.Bern at LINworks.de
Mon Aug 25 12:26:53 UTC 2014


On -10.01.-28163 20:59, Rick Thomas wrote:
> But a laptop that’s sometimes inside, sometimes outside doesn’t have
> a fixed port to connect to.  For those cases, I’d like the dovecot
> server to recognize the outside ports on the inside.

Well, if offering the *exact same* functionality on a second port is all
that needs to be done, having the server's host firewall (iptables?)
duplicate the NAT on your border firewall for internal accesses should
do just fine; no need to majick it into the dovecot config (which opens
the possibility of functional differences being introduced unintentionally).

Assuming Red Hat or similar with no conflicting iptables rules (yet),

# iptables -t nat -A PREROUTING -p tcp --dport 30xxx -j DNAT --to :143
# iptables -t nat -A PREROUTING -p tcp --dport 30yyy -j DNAT --to :993
# service iptables save

Regards,
								J. Bern
-- 
*NEU* - NEC IT-Infrastruktur-Produkte im <http://www.linworks-shop.de/>:
Server--Storage--Virtualisierung--Management SW--Passion for Performance
Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel


More information about the dovecot mailing list