Email handshake fails

I’m trying to get the email with the export contents of invoices & clients but i’m not receiving any emails. I am using my own SMTP server running hmail, checking the hmail logs I see the connect attempt from my self-hosted invoice ninja instance and it’s showing the following problem:

TCPConnection - TLS/SSL hadnshake failed. TLSV1 alert unknown ca.

Did a bit of googling seems to be related to the SSL certificate? I used let’s encrypt on my invoice ninja instance and it’s SSL is valid, so is the SSL for my email server so i’m not sure what the problem is. There are two different SSL cert’s for my subdomain’s that are. billing.mydomain.com and mail.mydomain.com not sure if that’s causing a problem or not.

My invoice ninja .env SMTP settings are:
SMTP
mail.mydomain.com
port: 25
[email protected]
PasswordXXX
Mail encryption: none

Any suggestions or ideas much appreciated.

Hi,

It may help to set he encryption to tls

Alternatively, you can use this solution to check if the cert is the problem.