restrict map-login by geoip?

Bradley Giesbrecht pixilla at macports.org
Thu Sep 17 15:35:22 UTC 2015


>> On Sep 16, 2015, at 6:31 PM, Benny Pedersen <me at 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 at 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)



More information about the dovecot mailing list