On 2021-04-08 13:44, Clifford Gonsalves wrote:
The servers are 1 Exchange and 1 Zimbra.
Can this work?
1: First server delivery via transport map.
2: Second delivery via address rewrite (recipient _bcc maps ) then
transport map to the rewritten address.
3: At Zimbra rewrite address again and delivery to local mailbox.
The solution is only required for incoming emails from the Internet.
What's still missing here is the ultimate goal: why do you want
this?
If you want to have a "hot spare" mail store, you're in the wrong
place. You would implement that in the IMAP server. See, a user
mailbox is not read-only, it's read-write. Users make changes all
the time; not just deleting mail, but also reading it. Those read
and replied (and other) tags are stored along with the mail. If
your user reads something in Exchange, how is Dovecot to know?
If you simply want another copy, that can be done with a pcre_ or
regexp_table of recipient_bcc_maps. Suppose the first server gets
the mail, make a copy for the other:
(.*)\@(<expression-which-matches-your-domains>) $1.$2@second.server
and "second.server" is another transport_maps entry.
--
http://rob0.nodns4.us/