[Dovecot] forbid some users and machines ?

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Mon Dec 7 18:06:38 EET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 7 Dec 2009, Frank Bonnet wrote:

> 1 - Is there a way to forbid log in of some Dovecot's users ?
>    I use NIS as authentication mechanism.

http://wiki.dovecot.org/Authentication/RestrictAccess

add this before any other passdb & read the Variables page about %Ls (You 
probably don't need it)

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

> 2 - Is it possible to forbid some machines (IP addresses ) to
>    connect to Dovecot server ?

Besides the iptables (or similiar on other OSs) approach, there is 
"Restricting IP Access" on the same page. Though, I don't know since when 
this feature is available.

regards,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSx0oEXWSIuGy1ktrAQLB0QgAiCJnWSESo2fcJYVlDE652Ipl5N6U3Id7
i5TSC4c3bf6bEaV2tOYG46Y4XW3S0kHLUFGf8Zchm1yYsnSVMkOIf9r0UrVt2b+E
Elc+Qfc5qWdPdshrR5VNZCxHu47WGSziY9iFf5baHhNsLa6+CGGrr4nIK63Q79h1
DnVydWacNCV5XCFjEokX5s+MObnm+SMJv/+9VxIZNsiO+duw9yfp+zEQ+O/41EC8
73iqtcl6cIYzBlE3hBB9KfmW8teQVSSI+UW73wdJFBIy0oeCGXUGZ265PhWedyy1
Sw70fI5sSG2IIT0VAQPnslsyPGm+4djgtMbM59hcG2RDlXwE3KJ+kg==
=dWOW
-----END PGP SIGNATURE-----


More information about the dovecot mailing list