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 dovecotThere'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') -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20100206/e2b64326/attachment-0002.bin>
On Sat, 06 Feb 2010 17:15:09 +0200 Timo Sirainen <tss at 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.