azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.1k stars 112 forks source link

Allow Insecure TLS like self-signed certificate for SMTP server #118

Closed InterN0te closed 10 months ago

InterN0te commented 10 months ago

Add an option to allow insecure TLS like self-signed certificat :

TLS disable : [ERROR] UserInvite: Error while sending email : unencrypted connection

TLS enable & TLS Insecure disable : [ERROR] UserInvite: Error while sending email : tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match protonmail-bridge

TLS enable & TLS Insecure enable : No error and e-mail send

cla-bot[bot] commented 10 months ago

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA.