LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   postfix etrn - primary mx make etrn request to secondary mx (http://www.linuxquestions.org/questions/linux-server-73/postfix-etrn-primary-mx-make-etrn-request-to-secondary-mx-759095/)

fukawi2 10-01-2009 06:44 PM

postfix etrn - primary mx make etrn request to secondary mx
 
So I've been reading up on ETRN, and configured it on my 2 Postfix servers - my primary and secondary MX.

But I can't see to find anywhere how to get the primary to connect to the secondary and issue the ETRN command automatically (eg, when Postfix starts). This seems to be the logical way this should work:

1) Primary server goes down
2) Secondary queues mail
3) Primary comes back up
4) Primary issues ETRN to Secondary to let it know that it can deliver mail to the Primary
5) Secondary acknowledges the ETRN and flushes the queue for the domains requested

Have I got the wrong understanding of ETRN? If it's a manual command, what is the point when I could just manually login to the secondary and run `postqueue -f`?

Berhanie 10-03-2009 11:15 AM

The way it works is this: when the primary MX goes down, the backup MXs queue the mail and keep trying to connect to the primary in order to offload the mail.
The primary may not know that it's unreachable (e.g. it may happen due to network problems), so if waiting for the backup MXs to contact the primary isn't
good enough, you might have to schedule a cron job. I haven't found anything in the documentation suggesting that postfix (in particular, the smtp client part of
it) can be configured to send an ETRN command, so you might have to write a simple script as suggested in this message from the mailing list.

fukawi2 10-03-2009 04:13 PM

Ah, see I wasn't sure if there was a way for postfix to do it internally. I guess not. A script in rc.local or modifying my init script will do the job nicely I think. Thanks for the link to that post :)


All times are GMT -5. The time now is 07:57 PM.