Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th July 2012, 11:56 AM
gregscott Offline
Registered User
 
Join Date: Jun 2007
Posts: 25
windows_7ie
Postfix stuck in outbound queue when default GW changes

Hello -

I have a Fedora router that juggles two Internet connections. When ISPA drops, I have a script that sets the default GW to ISPB, and then fails back to ISPA when ISPA comes back online. This all works.

The challenge is sending notifications. Part of the scripting is sending a Postfix email notification to a list. When I fail over to ISPB and when I fail back to ISPA, I send an email, like this:

mail -s "$(date) $(hostname) Primary path $POLL_IP is offline. Routing via backup $BACKUPGW." $NOTIFY_LIST < /dev/null

Just a quick subject line, no message body. This works, sort of.

The mail hits the outbound queue, but nothing goes out from Postfix. But the instant I fail back to ISPA, all the emails fly out the door. So essentially, this means nobody gets notified until after everything is back to normal again.

I've tried restarting postfix at failover, but this doesn't make any difference.

The Postfix config is as generic as it gets. The only change I made from the default config templates is one line in main.cf that looks like this:

myhostname = greg-fw

Everything else is right out of the box. Oh - resolv.conf has DNS resolvers from both ISPA and ISPB, so DNS resolution should be OK. Maybe a little slower when failed over to ISPB.

This particular instance is on Fedora 13 with postfix-2.7.4-1.fc13.i686. I know it's a little bit old, but I'll bet the same challenge exists with the latest versions.

Why would Postfix care if I change default gateway?

thanks

- Greg Scott
Reply With Quote
Reply

Tags
default, outbound, postfix, queue, stuck

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Outbound Port 25 Blocked savage Servers & Networking 0 6th December 2005 02:30 PM
sendmail queue stuck jsturtevant Using Fedora 1 18th June 2005 05:37 PM
Remove queue on postfix pipy Servers & Networking 2 17th April 2005 05:38 AM


Current GMT-time: 11:08 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat