SMTP TLS Version
SMTP TLS Version
Hi,
Are there any way to mange what version of TLS nagios log server will use to send emails?
The unique host report seems to send with tls1.0 and i whould like to change it to tls1.2
we are using office365 as smtp server
Are there any way to mange what version of TLS nagios log server will use to send emails?
The unique host report seems to send with tls1.0 and i whould like to change it to tls1.2
we are using office365 as smtp server
Re: SMTP TLS Version
What PHP version are you using?
I think you need to be on PHP 5.6.8 or higher for TLS 1.2.
Given this:
https://github.com/bcit-ci/CodeIgniter/ ... c375b806a2
I don't think the currently library we use supports it as it's missing that code:
Code: Select all
php -vGiven this:
https://github.com/bcit-ci/CodeIgniter/ ... c375b806a2
I don't think the currently library we use supports it as it's missing that code:
Code: Select all
/var/www/html/nagioslogserver/system/libraries/Email.phpRe: SMTP TLS Version
Thank you for the quick reply.
Our nagios server are indeed running php v 5.4.16.
is 5.6 preferred or can i update to php v7 or 8?
Our nagios server are indeed running php v 5.4.16.
is 5.6 preferred or can i update to php v7 or 8?
Re: SMTP TLS Version
Upgraded to php 5.6.40 and that did not change tls version /:
Re: SMTP TLS Version
I've tested this and can confirm that NLS is able to use TLSv1.2 on minimal cent 7 install without upgrading the php package.
What OS are you using?
Can you provide a screenshot of your mail settings?
How are you determining that TLS 1.0 is being used?
Do you see TLS 1.0 being used when you send a test email under Admin > General > Mail Settings ?
What OS are you using?
Can you provide a screenshot of your mail settings?
How are you determining that TLS 1.0 is being used?
Do you see TLS 1.0 being used when you send a test email under Admin > General > Mail Settings ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SMTP TLS Version
OS:
CentOS Linux release 7.9.2009 (Core)
php:
PHP 5.6.40 (cli) (built: Jan 4 2021 16:12:31)
Initial discovery was by a o365 security report
then i startede looking at the mail header of the last NLS reports and it states:
received: from nagioslog.dk.timeplan-software.com (x.x.x.x) by AS8PR04CA0057.eurprd04.prod.outlook.com (2603
20b:312::32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3784.12 via Frontend Transport; Fri, 22 Jan 2021 08:08:43 +0000
Attached screenshot of mail settings on NLS
CentOS Linux release 7.9.2009 (Core)
php:
PHP 5.6.40 (cli) (built: Jan 4 2021 16:12:31)
Initial discovery was by a o365 security report
then i startede looking at the mail header of the last NLS reports and it states:
received: from nagioslog.dk.timeplan-software.com (x.x.x.x) by AS8PR04CA0057.eurprd04.prod.outlook.com (2603
Attached screenshot of mail settings on NLS
You do not have the required permissions to view the files attached to this post.
Re: SMTP TLS Version
Switch the 'SMTP Security' to SSL, test again and let me know the results. Despite the 'SSL' label I believe it will still attempt TLS and this is how I tested with success.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SMTP TLS Version
when changing to SSL i get this error when pressing "test Settings" (see attached img)
You do not have the required permissions to view the files attached to this post.
Re: SMTP TLS Version
Edit /var/www/html/nagioslogserver/system/libraries/Email.php and on line 2071 you'll find:
STREAM_CRYPTO_METHOD_TLS_CLIENT restricts the version to TLS1.0 with php higher than 5.6.7. Try changing it to:
and test again. You may also want to test with these options:
STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT
STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
Code: Select all
$crypto = stream_socket_enable_crypto($this->_smtp_connect, TRUE, STREAM_CRYPTO_METHOD_TLS_CLIENT);Code: Select all
$crypto = stream_socket_enable_crypto($this->_smtp_connect, TRUE, STREAM_CRYPTO_METHOD_ANY_CLIENT);STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT
STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SMTP TLS Version
This seem to have done the trick
$crypto = stream_socket_enable_crypto($this->_smtp_connect, TRUE, STREAM_CRYPTO_METHOD_ANY_CLIENT);
thank you very much
Do you know if this file will/can be overwritten in a NLS update?
$crypto = stream_socket_enable_crypto($this->_smtp_connect, TRUE, STREAM_CRYPTO_METHOD_ANY_CLIENT);
thank you very much
Do you know if this file will/can be overwritten in a NLS update?