On Sat, 2005-04-09 at 12:15 -0700, Micah Stevens wrote: > Hi All, > > I'm running DBMail 1.x/MySQL and Postfix on a Redhat server now, and I just > had to expand to another server. What I'd like to do is install a similar > setup on the new server, which is easy enough, but I was wondering if there's > a good way to make them failover to the other server. > > This may be more of a MTA question, but consider I have server A, and Server > B. Clients on Server A, use MX 10 A, MX 20 B as their DNS MX records, and on > Server B, I have MX 10 B, MX 20 A, so that the other server will act as a > backup and hold the mail if the primary is unavailable and attempt to deliver > it later. > > I'm pretty sure this is possible, but has anyone seen any good howto's on the > subject? I just poked through the Postfix Docs and it wasn't obvious how to > do it. I'm going to google around a bit and see if I can find something, but > I figured I'd ask you experts. :)
Postfix will queue any mail it receives which is not rejected by any filter, so if your secondary mail server are MX backup for your primary one, set "relayhost = your-primary-server" in main.cf and copy all recipient and relay maps from your primary mail server. The goal is to authenticate all mail you want to receive, relay it to your primary server, and deny anything else. -- Robert
