On 05/08/2024 10:00, zaxwat93--- via dovecot wrote:
Thank you for explanation. Unfortunately it is better not to touch this script, so I will wait for the fix
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
Hi
I stated one thing wrong in my summary "Strange to say for the third db it doesn't find a match and does setup the filter."
That part was not correct since I had maybe a typo in my config. But that gave me a clue for another workaround. If the "args" parameter is different in each passdb, the current code seems to be working.
You can duplicate the script under different names or even create 2 symlinks to the same script. I didn't try it with php which I don't have installed.
passdb db1 { driver = checkpassword args = /usr/local/libexec/dovecot/checkpassword }
passdb db2 { driver = checkpassword args = /usr/local/libexec/dovecot/checkpassword1 username_filter = user1@postmaster.local.one default_fields = domain=local.one override_fields = user=postmaster@local.one }
passdb db3 { driver = checkpassword args = /usr/local/libexec/dovecot/checkpassword2 username_filter = user3@user2.local.one default_fields = domain=local.one override_fields = user=user2@local.one }
John