[Dovecot] Ip addr + login name

Andrey Panin pazke at donpac.ru
Thu Sep 8 09:18:42 EEST 2005


On 251, 09 08, 2005 at 10:43:36 +0600, mike wrote:
> Hi everybody,
> 
> Is there a way to bind client ip address that connects to pop3 with
> the login name? For example if the client ip address is 192.168.2.40
> then his login name is 'test' and he can log in with only that account
> name.

You can do it with SQL passdb and query below:

password_query = SELECT password FROM users WHERE userid = '%u' and userip = '%r'

> I think it is possible to do it with an external authentication
> program.

-- 
Andrey Panin		| Linux and UNIX system administrator
pazke at donpac.ru		| PGP key: wwwkeys.pgp.net


More information about the dovecot mailing list