Hello,

we updated from 1.15 to 1.17.2. For the Update-process we deactivated Mail Fetching via IMAP and SMTP. Unfortunately, now we get error when we try to reactivate SMTP. The Settings we are using, worked before. But somehow Sending Mails seems to work even while in Settings SMTP is still deactivated.

Error: "Unable to connect via TLS".
System: Ubuntu 20.04.5 LTS
Webserver: Apache/2.4.41
Mysql (MariaDB): 10.3.37
PHP: 8.2.1

Because we use a self signed certificate for our (on Premise) Exchange we added the following code into "Imap.php".
$context = stream_context_create([
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false
]
]);

In "SMTP.php" we changed the code as follows:
` // Did we receive a configuration array?
if (is_array($host)) {
// Merge config array with principal array, if provided
if (is_array($config)) {
$config = array_replace_recursive($host, $config);
} else {
$config = $host;
}

        // Look for a host key; if none found, use default value
        if (isset($config['host'])) {
            $host = $config['host'];
        } else {
            $host = '127.0.0.1';
        }

        // Look for a port key; if none found, use default value
        if (isset($config['port'])) {
            $port = $config['port'];
        } else {
            $port = null;
        }
  ###    if (!$socket_options)
        $socket_options = array(
                'ssl' => array('verify_peer_name' => false)
                );
    }

`

Do any of you have a Idea how we can fix the Issue?

Thank you in advance!

    4 days later

    MrUser PHP: 8.2.1

    osTicket does not support PHP 8.2 yet.
    Try downgrading to 8.0 or 8.1 and re-test.

    MrUser

    Also, we no longer use PEAR for mail connections since 1.17.x; we now use Laminas-Mail.

    Cheers.

      KevinTheJedi Yes we changed the Files in the Laminar Folder. Is that not possible anymore?

      I had this same issue last night. It went away after disabling some settings on Apache2 with regards to SSL, which was fine for now as my SSL certificate is not working anyway.

      Write a Reply...