email stopped working after upgrade to 5.10

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
JohnFLi
Posts: 511
Joined: Mon Jun 17, 2013 3:11 pm

email stopped working after upgrade to 5.10

Post by JohnFLi »

I upgraded to 5.10
now when i go to my email settings and have it send a test email, it returns
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=mailServerName.com;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
on my Contacts setup, if i have them set to "notify service my email" instead of "xi_service_notification_handler", the email do go out.....sonat east not all is lost

from another post, i followed
Re: Mails don't get send - SMTP connect() failed.
Post by pbroste » Tue May 23, 2023 2:28 pm

Hello @jacek

Thanks for reaching out, let's make the following update:

Make a backup:
CODE: SELECT ALL

cp /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php.bkp.5.10.0
Update by:
CODE: SELECT ALL

sed -i s/'public $SMTPAutoTLS = true'/'public $SMTPAutoTLS = false'/1 /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php
Restart the Apache service and send test email

Thanks,
Perry
but it didnt help

it was fine BEFORE the update
any ideas?
Everybody is somebody else’s weirdo
kg2857
Posts: 234
Joined: Wed Apr 12, 2023 5:48 pm

Re: email stopped working after upgrade to 5.10

Post by kg2857 »

Did you grep to see if the change was made withe sed?
User avatar
JohnFLi
Posts: 511
Joined: Mon Jun 17, 2013 3:11 pm

Re: email stopped working after upgrade to 5.10

Post by JohnFLi »

Yes, I do see on line 318 of PHPMailer.php, it does say: public $SMTPAutoTLS = false;

in the original file line 318 said: public $SMTPAutoTLS = true;
Everybody is somebody else’s weirdo
Andreaa23
Posts: 1
Joined: Mon Aug 07, 2023 10:06 pm

Re: email stopped working after upgrade to 5.10

Post by Andreaa23 »

JohnFLi wrote: Sat Jun 03, 2023 8:13 am I upgraded to 5.10
now when i go to my email settings and have it send a test email, it returns
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting DMV Practice Test(method=smtp;host=mailServerName.com;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
on my Contacts setup, if i have them set to "notify service my email" instead of "xi_service_notification_handler", the email do go out.....sonat east not all is lost

from another post, i followed
Re: Mails don't get send - SMTP connect() failed.
Post by pbroste » Tue May 23, 2023 2:28 pm

Hello @jacek

Thanks for reaching out, let's make the following update:

Make a backup:
CODE: SELECT ALL

cp /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php.bkp.5.10.0
Update by:
CODE: SELECT ALL

sed -i s/'public $SMTPAutoTLS = true'/'public $SMTPAutoTLS = false'/1 /usr/local/nagiosxi/html/includes/components/oauth2/vendor/phpmailer/phpmailer/src/PHPMailer.php
Restart the Apache service and send test email

Thanks,
Perry
but it didnt help

it was fine BEFORE the update
any ideas?
I have the same problem, tried many ways but it still doesn't work
Ensoway
Posts: 1
Joined: Mon Aug 07, 2023 10:29 pm

Re: email stopped working after upgrade to 5.10

Post by Ensoway »

JohnFLi wrote: Mon Jun 05, 2023 8:24 am Yes, I do see on line 318 of PHPMailer.php, it does say: public $SMTPAutoTLS = false fnaf security breach
in the original file line 318 said: public $SMTPAutoTLS = true;
I tried restarting the computer, it gave me a long error message and couldn't even work email, I don't understand why.
lisapurnellsw
Posts: 1
Joined: Wed Aug 09, 2023 9:28 pm

Re: email stopped working after upgrade to 5.10

Post by lisapurnellsw »

I`ve got a similar Problem since 15.10 but with SSL. This is the same problem since you have TLS and TLS auto-upgrade both disabled. Taylor Swift 2048
Post Reply