Page 1 of 1

SMTP Error: Could not connect to SMTP host

Posted: Thu Jan 24, 2013 8:08 am
by bojha
Hi All,

We are using Nagios XI 2011R1.9 which is running in RHEL 5 and set up the mail setting methods to SMTP and when we are giving the IP of the mail servers we are getting the test mail but when giving dns name of the same mail server not getting the test mail.
from Nagios XI , i did an ping to both IP and dns name and it is pinging both way.

is there any set up or change we need to do in any configuration file to make it work for the dns name ?

Thanks in advance..

Bijay

Re: SMTP Error: Could not connect to SMTP host

Posted: Thu Jan 24, 2013 8:17 am
by scottwilkerson
you should be able to use the DNS name just fine as long as your Nagios server can resolve the DNS name.

When you did the ping, did you do it on the Nagios XI server to the DNS name? It would be possible that your XI machine doesn't have proper DNS setup.

Can you run the following on the XI server to see if it outputs you DNS servers

Code: Select all

cat /etc/resolv.conf

Re: SMTP Error: Could not connect to SMTP host

Posted: Thu Dec 05, 2013 6:49 am
by bojha
Thank you very much Scott that resolved my issues..


With Regards,

Bijay