OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Secondary MX

From: Alan Civita (a.civitaembryon.it)
Date: Thu Mar 25 2004 - 04:51:51 CST


Hello
I'm sure this question was asked thousand of times..by the way here i am:
I have thi situation:
1) Mail server 1 as primary MX with Mdaemon installed
2) Mail server 2 as secondary MX with Postfix

I'd like to have that if the primary MX (mdaemon) is down for some
reason, the secondary Mx receive mails for the primary and then, when
the primary is Up and running delivers all the mails to the primary.
For doing that i've asked our DNS mantainer to set for the primary MX a
vvalue of 100 and for the secondary MX a value of 200.
Then of the postfix i have this configuration:

relay_domains = $mydestination mydomain.com
...
...
mail_spool_directory = /var/mail

canonical_maps = hash:/etc/postfix/canonical

virtual_maps = hash:/etc/postfix/virtual

relocated_maps = hash:/etc/postfix/relocated

transport_maps = hash:/etc/postfix/transport

sender_canonical_maps = hash:/etc/postfix/sender_canonical

...

....
...
masquerade_classes = envelope_sender, header_sender, header_recipient

myhostname = mxbakup.mydomain.com

masquerade_domains =

defer_transports =

disable_dns_lookups = no

mailbox_command =

mailbox_transport =

smtpd_sender_restrictions = hash:/etc/postfix/access

smtpd_client_restrictions =

smtpd_helo_required = no

smtpd_helo_restrictions =

strict_rfc821_envelopes = no

smtpd_recipient_restrictions =
permit_mynetworks,check_relay_domains,reject_unauth_destination

alias_maps = hash:/etc/aliases, hash:/etc/aliases.d/mailman

inet_interfaces = myip

 

I have no DNS running on the secondary MX..is necessary?
all the MX settings are configured to our Mantainer

Is that correct to make what i want?
With this configuration the mails collected by the back_up MX will be
automatically delivered to the primary?
I've seen around that note:
NOTE: Postfix will not automatically forward mail for domains that list
this system as their primary or backup MX host. See the permit_mx_backup
restriction, in the description of the smtpd_recipient_restrictions
parameter.
what i have to do?

Thank you very much in advance for helping me