Page 1 of 1

email notifications (postfix)

Posted: Sat Feb 16, 2013 10:36 pm
by felipe.costa
Hi,

Well... i'm facing big trouble trying to make nagios send email notification.

I' ve nagios working great, with all services i need, but i'd like to configure postfix to send e-mails to my personal email if something goes wrong.

I don't know how to do that.

Postfix is already installed, and i created another user and configured with my personal email to be notified.

can someone help me?

best regards.

Re: email notifications (postfix)

Posted: Sun Feb 17, 2013 4:43 pm
by jsmurphy
The person who is best going to be able to help you in this regard (assuming you are setting up Nagios for a company) is your email administrator, he'll be able to tell you what the SMTP relay is and if there are any special requirements for connecting to it... from there it's usually just a matter of configuring two or three lines in postfix.

Often you will only need to configure this in /etc/postfix/main.cf
my hostname = nagios.domain.com
my relayhost = mysmtpserver.domain.com

Re: email notifications (postfix)

Posted: Mon Feb 18, 2013 5:20 pm
by scottwilkerson
you may be able to gleen some information by following the maillog on the Nagios system

Code: Select all

tail -f /var/log/maillog
(location may vary by OS)

Re: email notifications (postfix)

Posted: Tue Feb 19, 2013 1:21 pm
by felipe.costa
I'd like to thnak you guys, your hints are very useful for me.

I solved my problem configuring postfix as a nullclient.

I get um exemple in this article from offical documentation http://www.postfix.org/STANDARD_CONFIGU ... ull_client

Thx a lot.


Best regards