Re: backup mail server
On Tuesday 28 February 2006 05:14 pm, Tom Lee wrote:
> Hi Matt,
> > > For smtp.foo.com:
> > >
> > > /etc/postfix/main.cf:
> > > relay_domains = backup.foo.com
> > > smtpd_recipient_restrictions =
> > > permit_mynetworks reject_unauth_destination
> > >
> > > relay_recipient_maps =
> > > transport_maps = hash:/etc/postfix/transport
> > >
> > > /etc/postfix/transport:
> > > backup.foo.com relay:[foo.com]
> > If this is the primary mailserver and final destination, why
> >list the domain in relay_domains?
> mentions that these settings should be kept.
> To have both primary mail server and backup mail server running, here is
> the summary what we can do based on your suggestion.
> foo.com. IN MX 10 mail.foo.com.
> foo.com. IN MX 100 backup.foo.com.
> the settings for backup.foo.com
> relay_domains = foo.com
> smtpd_recipient_restrictions =
> permit_mynetworks reject_unauth_destination
> relay_recipient_maps = hash:/etc/postfix/relay_recipients
> user1@... x
> (note: relay_domains is foo.com not backup.foo.com, I am not what "x" means
> here? )
The hash file is expected to have 2 column entries, so you need to have some sort of data in the 2nd column, just so it can be ignored.
postmap: warning: test, line 1: expected format: key whitespace value