[Dovecot] pop3 quick question
Hello list,
I have found imap_allowed option in dovecot which do exactly what I need, for imap. Is there something similar for pop3 protocol? The main goal for it - is to enable pop3 access to specific users.
Or maybe dovecot have some 'pop3=yes' or 'imap=no' args to userdb/passdb sections ?
I know future dovecot 2.* versions will support rewriting for protocols, but this is required for 1.2 branch.
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')
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.
participants (2)
-
Nikita Koshikov
-
Timo Sirainen