You could try to add the following line to your config.php:
'app.mail.verify-tls-peer' => false,
See here: https://github.com/nextcloud/mail/blob/main/doc/admin.md#disable-tls-verification-for-imapsmtp
You could try to add the following line to your config.php:
'app.mail.verify-tls-peer' => false,
See here: https://github.com/nextcloud/mail/blob/main/doc/admin.md#disable-tls-verification-for-imapsmtp