Page 1 of 1

Sending Emails From Nagios XI SMTP Issue

Posted: Thu Sep 07, 2017 3:16 pm
by imadc
Hello Support

I am trying to send alerts to contact it is working when telnet to the mail server through SSH but not when through Alerts where I am getting the following error in the log

Maillog-
Sep 7 15:46:22 rdnagios postfix/error[3252]: [email protected]>, relay=none, delay=118167, delays=118167/0.04/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx.sendgrid.net[167.89.118.48]:25: Connection timed out)

Here is the successful test from Telnet when SSH to the Nagios XI box

[root@rdnagios ~]# telnet XYZ 25
Trying XYZ ...
Connected to XYZ .
Escape character is '^]'.
220 X.Y.com Microsoft ESMTP MAIL Service, Version: 8.5.9600.16384 ready at Thu, 7 Sep 2017 16:06:50 -0400
helo
250 X.Y.com Hello [192.168.X.Y]
mail from: [email protected]
250 2.1.0 [email protected] OK
rcpt to: [email protected]
250 2.1.5 [email protected]
data
354 Start mail input; end with <CRLF>.<CRLF>
subject: Test

Test
.
250 2.6.0 <[email protected]> Queued mail for delivery


Thansk
Imad

Re: Sending Emails From Nagios XI SMTP Issue

Posted: Thu Sep 07, 2017 3:35 pm
by dwhitfield
imadc wrote: connect to mx.sendgrid.net[167.89.118.48]:25: Connection timed out)
It looks to me you are using two different servers. There's the above but also prmailoutbound.oceanwide.com

Please attach a screenshot of http://rdnagios/nagiosxi/admin/mailsettings.php (if you need to use the IP address instead, go for it). Also, please attach /usr/local/nagiosxi/tmp/phpmailer.log

Additionally, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.