On 31/12/2025 14:24 EET info--- via dovecot <dovecot@dovecot.org> wrote:
So there is not an option by configuration? Would be an useful asset. Now I have to program it with LUA? The passwd-file solution will not convert the email address into an existing userid which I need for mail directory locations eg. Currently I solved it using a series of regexp() expressions which I generated, but that's only an ugly fix and I have to hope a long expression (10k bytes) for a variable will not break dovecot. -Huibert.
passwd-file can in fact convert your usernames. just return user=foobar there.
e.g.
passdb byemail { driver = passwd-file passwd_file_path = /etc/dovecot/mail-to-uid fields { noauthenticate = yes } }
/etc/dovecot/mail-to-uid user@email:*::::::user=userid
Aki