Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-01-2009, 07:44 PM   #1
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Rep: Reputation: 34
Question 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`?
Old 10-03-2009, 12:15 PM   #2
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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.
Old 10-03-2009, 05:13 PM   #3
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Original Poster
Rep: Reputation: 34
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


mail, mx, postfix, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-SSL DragonM15 Linux - Server 2 09-24-2008 01:29 AM
Sendmail did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA paleogryph Linux - Software 3 08-31-2007 05:28 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 02:10 PM
Sendmail ETRN between 2 mail servers novis Linux - Server 14 10-11-2006 11:19 AM
Sendmail: did not issue MAIL/EXPN/VRFY/ETRN nenad Fedora 1 03-31-2005 02:12 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration