I have created a self-signed SSL certificate using OpenSSL, and I added it to hMailServer accessible in the private network. I used this certificate on port 465 and 993 to run SMTP and IMAP respectively with SSL:
Then I restarted the server and added inbound and outbound firewall rules to allow connection to the ports opened by hMailServer. But when I try to connect to my mail server with SSL from another computer in the local network, it fails:
I strongly suspect that it's because Thunderbird doesn't allow self-signed certificates by default, because when I switch the "SSL" value back to "Autodetect" it finds well the account settings, but only on "unencrypted" ports, i.e. 587 for SMTP and 143 for IMAP.
So now I want to add a security exception for my SSL certificate in Thunderbird in order to use it. I go to Thunderbird Preferences > Advanced > Certificates tab > Manage Certificates > Servers tab > Add exception
and then type the IP and port of the SMTP (or IMAP) server that uses the SSL certificate, but it doesn't find it:
What did I do wrong? I followed this tutorial to add a new exception on Thunderbird. When I try to do openssl s_client -connect 192.168.1.15:465
, I get a SSL certificate but it's not the same than the one I imported in hMailServer and I don't know if it's normal.
Thank you for your help.