Page 1 of 1

Email Config

Posted: Tue Jan 31, 2012 3:48 pm
by colbyhart
I can't seem to get Nagios to login to my SMTP server to send mail no matter what config I use. I have the server relay allowed. Can anyone give me suggestions?

Re: Email Config

Posted: Tue Jan 31, 2012 3:56 pm
by scottwilkerson
does your SMTP server require authentication?

If not, make sure the username and password fields are blank and security set to none

Re: Email Config

Posted: Tue Jan 31, 2012 3:59 pm
by colbyhart
I tried that and it doesn't work. Here is the msg.
A test email was sent to [email protected]
----
Mailer said: SMTP Error: Could not connect to SMTP host. (method=smtp;host=hchexchange.hch.local;port=25;security=none)
An error occurred sending a test email!

Re: Email Config

Posted: Tue Jan 31, 2012 5:23 pm
by lmiltchev
You have to be sure that you have all of the proper information entered. Also, make sure that port 25 is not blocked. You can try:

Code: Select all

# telnet hchexchange.hch.local 25
If you are not able to connect, you will get:

Code: Select all

telnet: Unable to connect to remote host: Connection timed out
otherwise, you will have:

Code: Select all

Connected to ... (...).
Escape character is '^]'.

Re: Email Config

Posted: Thu Feb 23, 2012 5:21 pm
by colbyhart
fixed