Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending E-Mail error probably due to TLS Self-Signed Certificate (since Seafile 11) #5933

Closed
wsirhc opened this issue Feb 1, 2024 · 2 comments

Comments

@wsirhc
Copy link

wsirhc commented Feb 1, 2024

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

@wsirhc
Copy link
Author

wsirhc commented Feb 2, 2024

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.

@wsirhc wsirhc closed this as completed Feb 2, 2024
@wsirhc
Copy link
Author

wsirhc commented Feb 2, 2024

This Settingshould be documented somewhere in the Seafile admin docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant