Noel Jones wrote:
Peter L. Berghold wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On my server at home I am running Nagios to keep track of what my
servers and applications are doing.  I send alerts over SMTP to my pager
when things go wrong.

One of the hosts that I'm monitoring (along with various services) is
the VPS that I use as my mail relay among other things. My server at
home routes ALL outgoing mail through that server.

Of course, the problem with that of course is if the relay is down I am
going to have a hard time sending the page out telling me the relay host
is down.  This has happened and when the relay comes back I get a flood
of pages telling me that the host is down followed by the "all clear."

Is there a way to specify multiple smart hosts in postfix?

You can use smtp_fallback_relay to specify where mail should go if the relayhost is down.
http://www.postfix.org/postconf.5.html#smtp_fallback_relay

Or you can use a local DNS entry that lists MX records showing how you want mail routed.

Both the above affect all mail.

Better yet,

better yet, replace the notification command with a script (perl or whatever you prefer). you can then implement more controls (when to notify, whom to notify, ...) as well as availability/redundancy/failover/...

and I probably have the answer for this already, is there a way to "hard
code" pages to go directly to the paging provider's SMTP server?

You can use a transport_maps entry to specify where mail to a specific domain or user should be delivered.

# transport map entry:
[EMAIL PROTECTED]  relay:[ip.of.pager.smtp]

http://www.postfix.org/transport.5.html



Reply via email to