Hi Timo,
thanks for your hints!
Did you have auth_username_format set already in old config? The default also has | lower to make it lowercase, which you probably want to keep.
The global one was %n in the old config, seems like I accidentally deleted it instead of putting "%{user | username}" there.
I can't reproduce this. If I have auth_username_format = %{user | username} then home:default = /data/mail/%{user}" expands to username without the @domain. Does it also contain the @domain if you run "doveadm user user@fqdn"?
After setting the global one it works now as expected, /data/mail/%{user} gets correctly expanded.
Is there an extra = here or just copy&paste mistake?
The mistake was also within the config, after fixing it it works now. Maybe an error should be thrown when a mistake like "= =" appears?
And I stumbled upon another thing: What would be the correct version of
imapsieve_mailbox1_name = Junk imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_before = file:/usr/lib/dovecot/sieve/report-spam.sieve
for 2.4?
https://doc.dovecot.org/2.4.0/core/summaries/settings.html#sieve_script_caus... mentions a script cause, but I didn't find any setting for the mailbox_name.
Regards Bjoern