|
发表于 2005-11-17 09:50:50
|
显示全部楼层
SORRY for any confusion in my previous reply.
Yes, suddenly5171 is right, dovecot似乎在PAM中不支持pam_access.so
When I did my test, I just made sure user1 is blocked (negative testing), but I forgot to verify other users are allowed. As sunndely5171 has said, if "Aaccount required pam_access.so" is added in /etc/pam.d/dovecot, 任何用户都无法登陆POP3服务器(没有在/etc/security/access.conf里添加用户).
cxfcxf said, "why not use pam_listfile.so ??
because pam_listfile.so can only 基于用户控制, it can NOT do 基于主机控制.
To do 基于主机控制, I think you have to either use iptables, or use xinetd来守护 instead of dovecot,具体做法请看:
http://wiki.dovecot.org/moin.cgi/InetdInstall
I tested this way and it works fine. |
|