use the connect-acl script at http://www.linux.org.py/wiki/howto/dovecot_connect_acl
or, the post-login script at http://wiki.dovecot.org/PostLoginScripting
(side note, http://spameatingmonkey.com/ Geo blacklist, for similar reasons but blocking outsider countries like oh say, china users that like to brute force)
On 10/13/2010 03:08 AM, Jobst Schmalenbach wrote:
Hi.
Is there any way to limit access to dovecot by domains.
I only need to give access to a well known set of domains, all from Australia and all networks are known and used either from people at home or mobile access (phones, laptops etc).
iptables is not possible as e.g. OPTUS does not give away all of the networks mobile phones are connected to. I know some, but not all.
It would be much nicer and easier to allow
optusnet.com.au bigpond.com.au tpg.com.au
and I have given 100% of our users access.
I know there is an extra field called "allow_nets", I tried this and failed. I did a search and found that this only works with SQL?
Maybe I could include a script that would check the reverse DNS record of a connected IP and then I could filter?????
Jobst