Steve Campbell
2013-Apr-09 18:33 UTC
[Dovecot] Any simple way to block logins by IP address?
Does Dovecot have a facility to block pop3 and imap logins by IP address. I usually do this by putting the IPs in my border firewall, but it's in transition currently to a new one, and I'd like to end connection fairly fast. If it matters, I'm using 2.0.9. Thanks steve campbell
Steve Campbel writes:> Does Dovecot have a facility to block pop3 and imap logins by IP > address. I usually do this by putting the IPs in my border firewall, but > it's in transition currently to a new one, and I'd like to end > connection fairly fast.You probably want to compile in tcp_wrapper support and handle it that way http://wiki2.dovecot.org/LoginProcess You might also hook into a the post-login script if you need some bizarre logic to determine whether to allow a login or not, but this is later in the session setup rather than block-on-sight like a firewall. http://wiki2.dovecot.org/PostLoginScripting Joseph Tam <jtam.home at gmail.com>