> On 31/12/2025 14:24 EET info--- via dovecot <[email protected]> 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

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to