LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-01-2009, 06:44 PM   #1
fukawi2
Member
 
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, 11:15 AM   #2
Berhanie
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, 04:13 PM   #3
fukawi2
Member
 
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
 
  


Reply

Tags
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 12:29 AM
Sendmail did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA paleogryph Linux - Software 3 08-31-2007 04:28 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
Sendmail ETRN between 2 mail servers novis Linux - Server 14 10-11-2006 10:19 AM
Sendmail: did not issue MAIL/EXPN/VRFY/ETRN nenad Fedora 1 03-31-2005 01:12 PM


All times are GMT -5. The time now is 08:30 AM.

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