Sending to two servers... I think this works... if you setup a postfix MTA in front of both servers, you should be able to have it send the mail to both by adding these lines to your main.cf (once you've setup the proper relay for the first server):
milter_default_action = tempfail
smtpd_milters = inet:"ip of second server"
The only problem that I have run into on this is that if the "second server" goes down (or is taken down for some reason), postfix just errors and doesn't continue to relay to the "first server".
I hope that makes sense. As a practical example, I use a postfox-based spam/virus filter that relays mail for my Exchange server. I wanted to test Zimbra, so I added these lines to my postfix filter's main.cf file. This allowed me to get the email to both servers. But, if I take down the test Zimbra server at all, the postfix filter stops relaying messages to my Exchange server.
Moral of the story: if you do this, be sure to remove the lines and do a "postfix reload" before you take the "other" server down.
I hope that helps. |