6 Feb
2010
6 Feb
'10
5:15 p.m.
On Sat, 2010-02-06 at 16:00 +0200, Nikita Koshikov wrote:
I have found imap_allowed option in dovecot
There's no such option in Dovecot. If you mean from http://wiki.dovecot.org/Authentication/RestrictAccess :
password_query = SELECT password FROM users WHERE userid = '%u' and (imap_allowed = true or '%Ls' = 'pop3')
You can do the same for both IMAP and POP3 with:
password_query = SELECT password FROM users
WHERE userid = '%u' and
(imap_allowed = true or '%Ls' != 'imap') and
(pop3_allowed = true or '%Ls' != 'pop3')