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,
Mail Settings
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Mail Settings
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.
It could be something is misconfiguration in the MTA on the server.
Re: Mail Settings
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.
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
You can send an e-mail from the command line for troubleshooting purposes.
Create a simple text file:
You can type in something or leave it empty.
Then run:
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).
Create a simple text file:
Code: Select all
vi /tmp/test.txtThen run:
Code: Select all
/usr/lib/sendmail -v <your_email> < /tmp/test.txtBe sure to check out our Knowledgebase for helpful articles and solutions!