[Dovecot] Restricting Services (POP or IMAP)

Timo Sirainen tss at iki.fi
Sun Oct 15 20:51:54 UTC 2006


On Thu, 2006-08-24 at 17:18 +0100, Rui Lopes wrote:
> Odhiambo WASHINGTON wrote:
> > It would be great to have a HOWTO in the wiki, on how to restrict 
> > services by username in dovecot, so some users are allowed IMAP
> > and others not allowed.
> > 
> > As concerns restricting users by IP, I believe that is a bad idea.
> > It's almost a useless idea, imnsho, because they can connect from
> > another IP.
> > It's easy to restrict services by IP using a firewall or by using
> > inetd.
> 
> That can be done, at least, with a SQL passwd db, see:
> 
> http://wiki.dovecot.org/Authentication/RestrictAccess

Yea, and actually it can also be done with passwd-file. Updated the wiki
page to contain this:

  passdb passwd-file {
    args = /etc/dovecot/deny.%Ls   
    deny = yes 
  }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061015/e394ea49/attachment.pgp 


More information about the dovecot mailing list