Sending E-Mail error probably due to TLS Self-Signed Certificate

After upgrading from Seafile 10 to 11, I’ve recognized that sending E-Mail is not working anymore.

I. e. In the Admin UI I am getting this Warning:

Successfully reset password to XXX, but failed to send email to XXXXX@auth.local, please check your email configuration

The Seahub log shows this error:
2024-01-31 13:09:44,957 [WARNING] seahub.api2.endpoints.admin.users:1508 put [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)

The Mail Host provides a self signed Certifcate. The Root- and Sub-CA Certificate is placed in the Debian Certifcate Store under /etc/ssl/certs.

Up to Seafile 10 I never had any problems using this configuration. Is there anything different I have to configure to get the self-signed certificate accepted by the Seafile-App?

kind regards


I found the following solution:

Set the environmental variable SSL_CERT_FILE to the corresponding cerificate bundle.

export SSL_CERT_FILE=/etc/ssl/certs/cabundle.pem

Now the SMTP STARTTLS communication will be successfully established.

See also : Sending E-Mail error probably due to TLS Self-Signed Certificate (since Seafile 11) · Issue #5933 · haiwen/seahub · GitHub