[Dovecot] authentication methods : pam, passwd and then backup question. How to restrict the methods
J4K
junk4 at klunky.co.uk
Tue Jan 25 19:20:59 EET 2011
On 01/25/2011 06:11 PM, Pascal Volk wrote:
> On 01/25/2011 05:55 PM J4K wrote:
>> On 01/25/2011 05:53 PM, Pascal Volk wrote:
>>> On 01/25/2011 05:50 PM J4K wrote:
>>>> I noticed that incoming users were attempting to authenicate using
>>>> several methods like pam sql. Eventually, they logged in.
>>>> Is there a way for dovecot to only query a mysql backup for users, and
>>>> skip the other methods?
>> # dovecot -n
>> # 1.2.15: /etc/dovecot/dovecot.conf
>> # OS: Linux 2.6.32-cgmemcap-smack x86_64 Debian 6.0 ext4
>> …
>> auth default:
>> …
>> passdb:
>> driver: pam
>> passdb:
>> driver: sql
>> args: /etc/dovecot/dovecot-mysql.conf
>> userdb:
>> driver: passwd
>> userdb:
>> driver: static
>> args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
>> userdb:
>> driver: sql
>> args: /etc/dovecot/dovecot-mysql.conf
>> …
> Remove passdb pam and userdb static, then reload the configuration and
> be happy. ;-)
>
>
> Regards,
> Pascal
OK,. tested. Removing the userdb static breaks authentication. I won't
do this again.
userdb static {
args = uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
}
More information about the dovecot
mailing list