Nextcloud: E-mail server configuration → Open-Xchange not working

Hello everyone,

I have a UCS 5.2-3 environment. The Primary Directory Node serves as the authentication server. Open-Xchange (7.10.6-ucs11) is running on the Replica Directory Node, and Nextcloud (30.0.15-0) is running on a Managed Node.
In the NC admin overview, I’m being shown that the e-mail server configuration is not completed. However, the credentials I enter don’t seem to work.

I created a user on the ADS for this purpose:

I tested sending e-mails using this user in Thunderbird (both desktop and mobile) with the following settings:

  • Server: [FQHN of the mail server]
  • Port: 465
  • Connection security: SSL/TLS
  • Username: system-noreply

and sending works fine.
However, when I enter exactly the same data in Nextcloud as the mail server configuration, sending the test mail does not work. Error message:

AxiosError: Request failed with status code 400

Even with these settings:

it doesn’t work either, and the same error message appears.
What am I doing wrong?

with best

You likely running into an issue with self-signed certificates.
Try adding the following into your nextcloud config.php

‘mail_smtpstreamoptions’ =>
array (
‘ssl’ =>
array (
‘allow_self_signed’ => true,
‘verify_peer’ => false,
‘verify_peer_name’ => false,
),
),

the forum blockquote does not let me to do proper indenting, but you will figure that out

Thank you for your reply. No, I never use self-signed certificates; I always use Let’s Encrypt certificates. They are valid as well.