Page 1 of 1

Test Email Settings with Error

Posted: Wed Sep 27, 2017 4:10 pm
by p.alexsantos
Hello,
We have not received any email alerts for nagios since 9/26/2017. I ran the System Test Email Messages, and I took the error below. Can you help me, has anyone seen this happen?

Test Email Settings
A test email was sent to [email protected]
----
Mailer said: [09-27-2017 17:36:51] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.generali;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!

Re: Test Email Settings with Error

Posted: Wed Sep 27, 2017 4:24 pm
by tacolover101
it would appear you're having issues connecting to the SMTP server. is 'smtp.generali' the correct FQDN?

can you probe the mail server's port from the Nagios machine?

Re: Test Email Settings with Error

Posted: Thu Sep 28, 2017 9:28 am
by p.alexsantos
Hello,

Is this the test you requested? If yes, it seems that smtp.generali 25 is functional. I need to solve this problem soon! Do you have any other ideas?

[root@GMZ4AP21 tmp]# telnet smtp.generali 25
Trying 10.128.0.15...
Connected to smtp.generali.
Escape character is '^]'.
220 smtp.generali Microsoft ESMTP MAIL Service ready at Thu, 28 Sep 2017 11:27:03 -0300
^C^]
telnet> quit
Connection closed.

Re: Test Email Settings with Error

Posted: Thu Sep 28, 2017 2:40 pm
by scottwilkerson
On the Admin -> Manage Email Settings page can you check the box for "Debug Log"
Then perform the test again.

This time you will have information in the CLI in the following file, please attach with your response
/usr/local/nagiosxi/tmp/phpmailer.log