On Sep 16, 2015, at 6:31 PM, Benny Pedersen <me@junc.eu> wrote:
Terry Barnum skrev den 2015-09-17 02:32:
I've searched but haven't found how to accomplish this.
http://wiki2.dovecot.org/Authentication/RestrictAccess http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/AllowNets
took me 3 sec :=)
On Sep 16, 2015, at 6:56 PM, Terry Barnum <terry@dop.com> wrote:
Thanks Benny. I should've said I saw AllowNets but in researching it looked like it expected a smaller comma separated list, not hundreds of IP blocks. Is that what you are using to accomplish this?
You could use a geoip table [1] in your firewall or in dovecot with sql and variables [2].
[1] https://dev.maxmind.com/geoip/geoip2/geolite2/ [2] http://wiki2.dovecot.org/Variables
Regards, Bradley Giesbrecht (pixilla)