[Dovecot] authentication methods : pam, passwd and then backup question. How to restrict the methods

J4K junk4 at klunky.co.uk
Tue Jan 25 19:18:09 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
I do not undestand why the static should be removed:

  userdb:
    driver: static
    args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes

Won't this break it?


I have commented out:






More information about the dovecot mailing list