OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: backup MX
From: Ralf Hildebrandt (R.Hildebrandttu-bs.de)
Date: Sun Mar 05 2000 - 08:36:23 CST


On Sun, Mar 05, 2000 at 03:21:45PM +0100, Gunnar Lindholm wrote:
> Hello.
> I'm trying to figure out how to set up postfix to work as a mail backup for my
> home network. I have set up one box as primary mailer (mx pref. 10) and another
> one with mx pref. 100. The DNS is correct set up I think. But now I want to
> shutdown the primary one, and then send a lot of mail to my domain, just to see
> that the secondary one takes over the mail and queue it for a while. I have a
> /etc/postfix/main.cf that I dont think is right. So therefore,
> 1) Can some one with a similar setup send me a working main.cf that I can
> study?
No. Add the domain you want to be backup MX for to relay_domains; my box is
sec. MX for macke.org:

relay_domains = $mydestination,
                           macke.org
                           

> 2) Can someone tell me how to controll how often postfix should try to send the
> mail from the queue on the secondary mailer to the primary one.

Use queue_run_delay and maximal_queue_lifetime
(http://www.informatik.uni-bonn.de/pub/software/postfix/rate.html), default
is 1000s between two queue runs and a queue lifetime of 5 days.

-- 
Ralf Hildebrandt <R.Hildebrandttu-bs.de> www.stahl.bau.tu-bs.de/~hildeb
The nice thing about Windows is - It does not just crash, it displays
a dialog box and lets you press 'OK' first.