On 29/02/2024 19.08, Benny Pedersen wrote:

Andreas via dovecot skrev den 2024-02-29 17:30:

How do I configure this in Dovecot? I assume the mapping can't stay with Postfix if I migrate to LMTP – is that correct?

all alias to same mailbox, then in dovecot move mails to subfolder on base of recipient with sieve rule :=)

for the lmtp only ensure alias to mailbox is many to one mailbox, rest is just sieve, in postfix do alias rewrite before lmtp stage

So are you saying I should replace my example `virtual_mailbox_maps` (see at bottom for reference) by a `virtual_alias_maps` as follows?

 j...@smith.name joe.smith         # two normal users
 j...@smith.name jane.smith
 t...@smith.name joe.smith        # submaildir of first user
 @smith.name joe.smith            # catchall goes to submaildir too

Both `joe.smith` and `jane.smith` are valid IMAP account in my Dovecot, I assume they would be addressed via LMTP?

But I don't understand how I could use Sieve to access the original RCPT TO command from the SMTP protocol. That information is likely lost by the above mapping, isn't it?


For reference, here is my current `virtual_mailbox_maps` again:

 j...@smith.name joe.smith/         # two normal users
 j...@smith.name jane.smith/
 t...@smith.name joe.smith/.test/  # submaildir of first user
 @smith.name joe.smith/.catchall/  # catchall goes to submaildir too
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to