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!