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-le...@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 = us...@postmaster.local.one
  default_fields = domain=local.one
  override_fields = user=postmas...@local.one
}

passdb db3 {
  driver = checkpassword
  args = /usr/local/libexec/dovecot/checkpassword2
  username_filter = us...@user2.local.one
  default_fields = domain=local.one
  override_fields = user=us...@local.one
}

John
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to