SMTP without hostname

Hello my name is Julien,

I’ve got a problem with the SMTP configuration.
I explain, when I use the wizard to configure the config.php file with port 25 it’s ok. But with SSL/TLS with port 465 it’s not working.

It’s the error log in /var/log/exim/main.log:
TLS error on connection from “THE HOSTNAME OF THE SERVER” [MY SERVER IP] (SSL_accept): error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca

The problem is the hostname of my server it’s not the same of the domain.
Because i can’t change it.
How can I force Nextcloud to use “mydomain.tld” and not the hostname ?

Thanks all peoples :slight_smile: