6 Feb
2010
6 Feb
'10
4:58 p.m.
On Sat, 06 Feb 2010 17:15:09 +0200 Timo Sirainen tss@iki.fi wrote:
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')
Thanks, I'll look at postlogin script assistance for my issues.