[Dovecot] Limiting Dovecot access by user-spesific ip addresses?

Bob Hope savagephp at gmail.com
Sat Mar 11 17:15:07 EET 2006


If your users are stored in MySQL, couldn't a variable be added to the
dovecot-sql.conf section to do something like "user_query = SELECT home,
uid, gid FROM users WHERE userid = '%u' and ip='%ip'"? I realize the %ip
would have to be added, but that should be an easy addition. Then you
can just put an ip range or single ip in the MySQL table from which the
user is allowed to authenticate.

Tom


Timo Neuvonen wrote:
> Hi,
>
> Is there any possibility to limit access to mailboxes by user-spesific ip
> addresses?
>
> So, I'd like to have a configuration which by default restricts reading
> emails to company's own ip-address range. So far, this could be achieved by
> a basic firewall rule, but not any more the following:
>
> However, there is need for a few users to access their emails from
> world-wide internet, so there should be a possibility to define for certain
> users an option to skip the allowed address range check.
>
>
> Regards,
> Timo
>
>
>
>   



More information about the dovecot mailing list