Hello, Is there a way to restrict clients access, for example: user1 at domain.com -> only access pop3 user2 at domain.com -> can access pop3 and imap in Dovecot? Thanks !!!
On Thu, 2009-07-30 at 15:29 -0300, Darvin Denmian wrote:> Is there a way to restrict clients access, for example: > > user1 at domain.com -> only access pop3 > user2 at domain.com -> can access pop3 and imap > > in Dovecot?Yes. What passdb do you use? For example in SQL query you could use %s variable. http://wiki.dovecot.org/Variables You could also use an extra deny=yes passdb, for example: passdb passwd-file { deny = yes args = /etc/deny.%Ls } and then create /etc/deny.imap having a list of usernames not allowed to log in with imap. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090730/b61101b8/attachment-0002.bin>
Thanks again Timo !!! On Thu, Jul 30, 2009 at 3:45 PM, Timo Sirainen<tss at iki.fi> wrote:> On Thu, 2009-07-30 at 15:29 -0300, Darvin Denmian wrote: >> Is there a way to restrict clients access, for example: >> >> user1 at domain.com -> only access pop3 >> user2 at domain.com -> can access pop3 and imap >> >> in Dovecot? > > Yes. What passdb do you use? For example in SQL query you could use %s > variable. http://wiki.dovecot.org/Variables > > You could also use an extra deny=yes passdb, for example: > > passdb passwd-file { > ?deny = yes > ?args = /etc/deny.%Ls > } > > and then create /etc/deny.imap having a list of usernames not allowed to > log in with imap. > >