Emails not getting generated after 2FA enablement

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Emails not getting generated after 2FA enablement

Post 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
pavan509
Posts: 72
Joined: Fri Apr 30, 2021 7:07 am

Re: Emails not getting generated after 2FA enablement

Post by pavan509 »

Hello Perry,

Please find the requested log file.
You do not have the required permissions to view the files attached to this post.
Thanks, Pavan
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Emails not getting generated after 2FA enablement

Post 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
pavan509
Posts: 72
Joined: Fri Apr 30, 2021 7:07 am

Re: Emails not getting generated after 2FA enablement

Post 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
You do not have the required permissions to view the files attached to this post.
Thanks, Pavan
pavan509
Posts: 72
Joined: Fri Apr 30, 2021 7:07 am

Re: Emails not getting generated after 2FA enablement

Post 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
You do not have the required permissions to view the files attached to this post.
Thanks, Pavan
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Emails not getting generated after 2FA enablement

Post 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.
pavan509
Posts: 72
Joined: Fri Apr 30, 2021 7:07 am

Re: Emails not getting generated after 2FA enablement

Post by pavan509 »

Hello ssax,

Sent you the details via PM.
Thanks, Pavan
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Emails not getting generated after 2FA enablement

Post 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.
Locked