> On 13/11/2025 14:43 EET Lou Duchez via dovecot <[email protected]> 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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to