kazabe: > Hi. > > I have a secundary MX managing the queue when the main MX is no > available. All work fine. The main MX is on line again and the > secundary MX send the messages to them. But we need an special > feature to some specifical accounts: > > if the secondary MX receive a message to c...@domain.com and the main > MX is not available, the user crm need access to the message stored in > the secundary MX. I solve that using transport. > > c...@domain.com local: > domain.com smtp:[mx.domain.com] > > That is a solution when Primary MX is down, because the crm user can > read any waiting message (using a webmail in secundary MX); but i have > a little issue to solve it: > > How can i deliver the messages (or send a copy) received by > c...@domain.com to Primary MX when this is available again? maybe > keeping a copy in the queue?. > > I can use only the resources available in the secundary MX.
Instead of using a transport map, deliver mail for c...@domain.com in two places: a BCC copy on the secondary MX, in addition to the mail that is delivered to the primary MX. /etc/postfix/main.cf: recipient_bcc_maps = hash:/etc/postfix/recipient_bcc etc/postfix/recipient_bcc: c...@domain.com crm@localhost Wietse