osticket and self-signed-certificates on email server

This has to do with PHP >= 5.6, where php changed its behavior with self signed certificates.  This has caused osticket users to keep old PHP versions in order to operate with self signed mail servers. But actually the fix is relatively simple:
Go to {osTicket directory}/include/pear/Net/SMTP.php line 173 and change this line:

‘ssl’ => array(‘verify_peer_name’ => false)
to this
‘ssl’ => array(‘verify_peer’ => false, ‘verify_peer_name’ => false)
This was copied from http://osticket.com/forum/discussion/89767/authentication-failure-smtp
(see KevinTheJedi answer on 2017 February 17)
I copy the original response below:

Do you have a test environment that is getting this issue with PHP 5.6 and osTicket 1.10?

If so try something for me to see if your issue goes away (I am unable to replicate this error):

1.) Go to {osTicket directory}/include/pear/Net/SMTP.php line 173 and change this line:

‘ssl’ => array(‘verify_peer_name’ => false)
to this
‘ssl’ => array(‘verify_peer’ => false, ‘verify_peer_name’ => false)

2.)Go to {osTicket directory}/include/pear/Mail/smtp.php line 141 and change this line:
$timeout = null;
to this
$timeout = 60;

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *