Sending EMail via TLS
Posted: Thu Mar 25, 2021 11:28 am
Hi
I am trying to configure Nagios xi 5.7.1 to connect to our Postfix Servers over TLS
When I change the Security to TLS I get the following message
2021-03-25 16:23:09 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS"
2021-03-25 16:23:09 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2021-03-25 16:23:09 Connection failed. Error #2: stream_socket_enable_crypto(): SSL: Connection reset by peer [/usr/local/nagiosxi/html/includes/phpmailer/class.smtp.php line 375]
SMTP Error: Could not connect to SMTP host.
2021-03-25 16:23:09 CLIENT -> SERVER: QUIT
2021-03-25 16:23:09 Connection failed. Error #8: fwrite(): send of 6 bytes failed with errno=32 Broken pipe [/usr/local/nagiosxi/html/includes/phpmailer/class.smtp.php line 999]
2021-03-25 16:23:09 SERVER -> CLIENT:
2021-03-25 16:23:09 SMTP ERROR: QUIT command failed:
2021-03-25 16:23:09 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
Everything before this has code 250
I can connect to the same Postfix Servers from other Servers (Windows) via TLS
When I run the following openssl command
openssl s_client -starttls smtp -connect POSTFIXSEREVR:25
I get all the details of the Certificate
The Certificate is made up of
CommonName - External VIP Name of the Postfix Servers
DNS1 Internal Name for the same Postfix Servers (This is what we connect to)
Signed by our Internal CA Server
The Connection to the Postfix Servers over Port 25 is open and there is no userid and password required
Could it be that the Certificate needs to be imported into the Nagios Server or the CA Root Certificate ?
Thanks
I am trying to configure Nagios xi 5.7.1 to connect to our Postfix Servers over TLS
When I change the Security to TLS I get the following message
2021-03-25 16:23:09 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS"
2021-03-25 16:23:09 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2021-03-25 16:23:09 Connection failed. Error #2: stream_socket_enable_crypto(): SSL: Connection reset by peer [/usr/local/nagiosxi/html/includes/phpmailer/class.smtp.php line 375]
SMTP Error: Could not connect to SMTP host.
2021-03-25 16:23:09 CLIENT -> SERVER: QUIT
2021-03-25 16:23:09 Connection failed. Error #8: fwrite(): send of 6 bytes failed with errno=32 Broken pipe [/usr/local/nagiosxi/html/includes/phpmailer/class.smtp.php line 999]
2021-03-25 16:23:09 SERVER -> CLIENT:
2021-03-25 16:23:09 SMTP ERROR: QUIT command failed:
2021-03-25 16:23:09 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting
Everything before this has code 250
I can connect to the same Postfix Servers from other Servers (Windows) via TLS
When I run the following openssl command
openssl s_client -starttls smtp -connect POSTFIXSEREVR:25
I get all the details of the Certificate
The Certificate is made up of
CommonName - External VIP Name of the Postfix Servers
DNS1 Internal Name for the same Postfix Servers (This is what we connect to)
Signed by our Internal CA Server
The Connection to the Postfix Servers over Port 25 is open and there is no userid and password required
Could it be that the Certificate needs to be imported into the Nagios Server or the CA Root Certificate ?
Thanks