[Dovecot] IMAP only for some users or via webmail

Timo Sirainen tss at iki.fi
Fri Jan 22 01:05:22 EET 2010


On 22.1.2010, at 0.51, Federico Tomasczik wrote:

> 1) A group of users can use IMAP or POP3.
> 
> 2) The others, only can use POP3. But, this users can use IMAP only
> with a webmail (the webmail is in the same server that Dovecot)
> 
> It is possible? How?

If you're using SQL, you can do something iike:

password_query = .. where ('%s' != 'imap' or  imap_allowed=true or '%r' = '127.0.0.1') and ..

The idea being that your webmail connections are coming from 127.0.0.1 and they're always allowed.



More information about the dovecot mailing list