Page 3 of 3

Re: Emails not getting generated after 2FA enablement

Posted: Wed Sep 08, 2021 4:08 pm
by pbroste
Hello @pavan509

Let's take a look at the eventman.log to see what messages are reported during the phpmailer event:

Code: Select all

tar -czvf file.tar.gz /usr/local/nagiosxi/var/*.log
Thanks,
Perry

Re: Emails not getting generated after 2FA enablement

Posted: Mon Sep 13, 2021 5:49 am
by pavan509
Hello Perry,

Please find the requested log file.

Re: Emails not getting generated after 2FA enablement

Posted: Mon Sep 13, 2021 5:17 pm
by ssax
Please enable debug logging and send us the output when using the Send a Test Email functionality:

https://support.nagios.com/kb/article/p ... g-820.html

You may need to upgrade your PHP (you're running PHP 5.4 ) as TLS 1.2 wasn't fully supported until PHP 5.6.28+:

https://support.nagios.com/kb/article/n ... 7-860.html

Re: Emails not getting generated after 2FA enablement

Posted: Tue Sep 14, 2021 1:41 am
by pavan509
Hello Ssax,

Please find the outputs as attached for the below commands.

Code: Select all

tail -Fn0 /var/log/httpd/* /var/log/apache2/* >> /tmp/results1.txt
results1.txt

Code: Select all

tar -czvf file.tar.gz /usr/local/nagiosxi/var/*.log
file.tar.gz

Re: Emails not getting generated after 2FA enablement

Posted: Tue Sep 14, 2021 4:51 am
by pavan509
Hello Ssax and Perry,

I have updated the PHP version to 7.2 as suggested in the https://support.nagios.com/kb/article/n ... 7-860.html and tested sending a test email with tls and port 587. It was successfully delivered.

Thanks for your continuous support in getting this issue addressed and solved.

Now, I have updated the same settings by upgrading the PHP version on another server and sent a test email but it resulted in the same error which I got earlier. So I am unable to figure what steps I have missed. Could you please help me in fixing the issue in the other server as well?

Attached are the basic logs which were captured.

Code: Select all

tail -Fn0 /var/log/httpd/* /var/log/apache2/* >> /tmp/results1.txt
results1.txt

Code: Select all

tar -czvf file.tar.gz /usr/local/nagiosxi/var/*.log
file.tar.gz

Re: Emails not getting generated after 2FA enablement

Posted: Tue Sep 14, 2021 2:38 pm
by ssax
Enabled debug logging on that system:

https://support.nagios.com/kb/article/p ... g-820.html

Click the Send a Test Email button and send the full output.

Re: Emails not getting generated after 2FA enablement

Posted: Wed Sep 15, 2021 11:23 am
by pavan509
Hello ssax,

Sent you the details via PM.

Re: Emails not getting generated after 2FA enablement

Posted: Wed Sep 15, 2021 6:00 pm
by ssax
The XI server doesn't trust the issuer of your SMTP server's certificate.

You'll need to update the OS to trust the issuer of your SMTP server's TLS certificate:

https://manuals.gfi.com/en/kerio/connec ... -1605.html

Then test again.