Configuring nagios for email notification on ubuntu


#1

Followed that 20 min quick nagios server setup for ubuntu and everything went fine but it will not notifiy by email can anyone tell me how to setup email notifications for nagios on ubuntu, I understand that the mail server on ubuntu has to be set up for the email notification to work, and possibly also a relay agent. Any links or any useful information will be greatly uppreciated.


#2

are you still having this problem?

I have the same issue as well. for some reason I can only email external domains.

Let me know if you’ve figured this out. I can help you email someone from outside of your domain.

-Rudy


#3

check your mail server logs.


#4

Luca,

sorry for the newbish question but what command do I use? I’m still having issues sending mail internally and hopefully this can help me debug my problem.

Thank you,
-Rudy


#5

less /var/log/mail.log
If the logs are in the default location…


#6

Luca,

I found this community.spiceworks.com/topic/108157

It helped me a lot. However, in the process I knocked out the ability to email to servers who check for FQDN.

Rudy


#7

those instructions tell you how to send your mail to a relay server.
Postfix at that point shouldn’t even be trying to send mail to other servers, as you configured it to send everything through the exchange server, it’s the exchange server which had to accept relaying mail coming from your postfix install.


#8

oh I see!

Oh and I was able to get it to send to an outside domain if I use a vaild sender, and not “mail from: root@localhost”

Thanks again,
Rudy