On 29/02/2024 17.08, Serg wrote:
On 2/29/24 15:54, Andreas via dovecot wrote:
Thanks! Can you say where the mapping from the user part in "From" addresses to actual mail(sub)dir goes after switching to LMTP?
Currently, I've got a
virtual_mailbox_maps
in Postfix main.cf for this purpose. Is there something similar in Dovecot?It looks similar to this:
# If you don't have any user-specific settings, you can avoid the user_query # by using userdb static instead of userdb sql, for example: # <doc/wiki/UserDatabase.Static.txt> userdb { driver = static args = uid=vmail gid=vmail home=/var/vmail/%u }
And then:
mail_location = maildir:~/.maildir
Thanks. I've had something like this already for the "shared filesystem" config. But how do I do an actual mapping from user@domain.tld to maildir names and possibly submaildirs?
Let me show an example virtual_mailbox_maps
:
joe@smith.name joe.smith/ # two normal users jane@smith.name jane.smith/ test@smith.name joe.smith/.test/ # submaildir of first user @smith.name joe.smith/.catchall/ # catchall goes to submaildir too
In this example, there are only two IMAP accounts:
joe.smith jane.smith
No IMAP account for "test" and none for the catchall.
How do I configure this in Dovecot? I assume the mapping can't stay with Postfix if I migrate to LMTP – is that correct?