Once again, you are right, and I thank you! I have added the "driver" parameters so that it's explicit, and when I have to change this again in 2040, I will understand how it works.
Here is what I have now, and I believe this will be the "final" version:
passdb ordinary_users {
driver = passwd-file
passwd_file_path = /vmail/Maildir/passwdfile passdb_result_success = return-ok passdb_result_failure = continue-fail }
passdb main_mail_server {
driver = static
fields { nopassword = yes allow_nets = xxx.xxx.xxx.xxx/32 } passdb_result_success = return-ok passdb_result_failure = return-fail }
On 11/13/2025 7:57 AM, Aki Tuomi via dovecot wrote:
On 13/11/2025 14:43 EET Lou Duchez via dovecot <dovecot@dovecot.org> wrote:
Thank you for your advice! I have it working now, by changing the second passdb to static.
I was not able to give arbitrary names to my two passdbs though; it seems that Dovecot expects names of mechanisms like "passwd-file" or "static", or else it doesn't work. Unless I'm doing something wrong, anyway. But if I'm correct, that means that Dovecot 2.4.1 is going to have trouble if you need to consult multiple passwd-files.
Here is what worked for me:
passdb passwd-file { passwd_file_path = /vmail/Maildir/passwdfile passdb_result_success = return-ok passdb_result_failure = continue-fail }
passdb static { fields { nopassword = yes allow_nets = xxx.xxx.xxx.xxx/32 } passdb_result_success = return-ok passdb_result_failure = return-fail } Not really true, but if you use
passdb machine-to-user { }
you need to add
driver=static
so it knows which driver to use now.
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org