Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
We have a system of three boxes that handle mail in different ways. The first is our MX record and handles all incoming mail from the outside. It forwards the mail to our production mail server (the one people have mailboxes on), and performs spam checking, etc. The last box is our new server we are putting into production this weekend (along with a migration from mbox to maildir).
The problem I haven't been able to solve is how to get a copy of the message sent from our MX to both of the destination servers. That way we can always revert to mbox if something begins to look like it's going wrong.
I thought about using transport maps to set our domain to forward from the gateway to both machines, but it doesn't seem transport maps were designed for this purpose. Aliases weren't much of a lead either, and using the bcc option would just plop all the mail in one account on the system (something we really don't want to have to deal with).
I'm just throwing this out there to hopefully get some suggestions or guidance, and thanks in advance to everyone who replies.
If you need more information to help out I'm more than willing to share. Just let me know.
I don't think postfix will be much help with that. All postfix cares about is that it receives the message and that it can hand it off to the MDA (mail delivery agent), such as dovecot, cyrus, even procmail.
cyrus-imap uses perdition which allows you to do just that. I don't know if dovecot can do it. Basically your MDA will receive the message handed over from postfix then it will send it to two separate MDA's which will then save the message in the mbox or maildir format. perdition does this.