Page 1 of 1

Mail Settings

Posted: Tue Mar 20, 2012 12:43 pm
by sdoan01
Under General Mail Setting, I am trying to setup mail method through "Sendmail". It was working on an old Nagios Server, but I had to reinstall Nagios Server and now it is not working. When I click on "send a test email" using "Sendmail" mehtod, it says "An email was sent to: [email protected]". I have tried different email addresses and I never receive a test email. I need this setup for alerts that I am monitoring my servers. Can someone help me please?
Thanks,

Re: Mail Settings

Posted: Tue Mar 20, 2012 1:54 pm
by scottwilkerson
I would look in /var/log/maillog to see if anything is standing out why the mail is rejected.

It could be something is misconfiguration in the MTA on the server.

Re: Mail Settings

Posted: Wed Mar 21, 2012 5:04 pm
by sdoan01
How or where can I get CentOS Linux release 6.0 Kernel 2.6 32-131.17.1.eI6.i686 on an i686?

I just reinstalled Nagios using 6.2 and I still can't get sendmail or SMTP method to work. I have an CentOS 6.0 on a different server and "sendmail" works fine.

Re: Mail Settings

Posted: Thu Mar 22, 2012 4:22 pm
by lmiltchev
You can send an e-mail from the command line for troubleshooting purposes.

Create a simple text file:

Code: Select all

vi /tmp/test.txt
You can type in something or leave it empty.

Then run:

Code: Select all

/usr/lib/sendmail -v <your_email> < /tmp/test.txt
Review the output for errors and check your e-mail to see if you received the test message. Check your "spam" folder" as well (just in case it ends up there).