6 – Self-signed SSL error on Outlook/Thunderbird Print

  • 0

After creating an email account in Nexi Panel some users would like to configure their email accounts to third party email clients such as Outlook or Thunderbird.

Both these clients have auto-discover functionality, this functionality will try to automatically configure your email settings so that end-user won’t have to do anything. For example, if on Thunderbird I configure:

  • User: support@Nexi Panel.net
  • Password: <your email password>

Thunderbird may suggest the following settings:

Server hostname: mail.Nexi Panel.net

IMAP Port: 143

Now Thunderbird will be looking for a valid SSL for mail.Nexi Panel.net and if valid SSL is not offered by the server you will get a self-signed SSL error.


How to resolve Self-signed SSL Error

After version v1.9.4 of Nexi Panel, upon website creation, Nexi Panel will create mail.domain.com as a child domain to while creating a website and also issue SSL for it. Then Nexi Panel will add edit /etc/dovecot/dovecot.conf and add the following to the file:

  1. local_name mail.domain.com {
  2. ssl_cert = </etc/letsencrypt/livemail.domain.com/fullchain.pem
  3. ssl_key = </etc/letsencrypt/live/mail.domain.com/privkey.pem
  4. }
 

and then restart dovecot service using systemctl restart dovecot. This way there will be no SSL errors on either Outlook or Thunderbird.

Manually setting this up

Let say you are on some of the old versions of Nexi Panel or you have already created a website before upgrading to v1.9.4. You can go ahead and create mail.domain.com as a child-domain to your master domain also make sure to issue SSL for this domain.

Step 1: Open the file /etc/postfix/main.cf using any editor

  1. sudo nano /etc/postfix/main.cf

Step 2: Comment the first two lines in that file by adding an # sign at the beginning.

  1. # smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
  2. # smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
 

Step 3:  Add the following lines after changing. Remember to replace YourPrimaryMailServerDomain with the your own domain.

  1. # provide the primary certificate for the server, to be used for outgoing connections
  2. smtpd_tls_chain_files =
  3. /etc/letsencrypt/live/mail.yourprimarymailserverdomain.com/privkey.pem,
  4. /etc/letsencrypt/live/mail.yourprimarymailserverdomain.com/fullchain.pem

Step 4: In order to support SNI you need to add the following lines at the end

  1. # provide the map to be used when SNI support is enabled
  2. tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
 

After all the above steps your files should look like this

  1. # smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
  2. # smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
  3.  
  4. # provide the primary certificate for the server, to be used for outgoing connections
  5. smtpd_tls_chain_files =
  6. /etc/letsencrypt/live/mail.yourprimarymailserverdomain.com/privkey.pem,
  7. /etc/letsencrypt/live/mail.yourprimarymailserverdomain.com/fullchain.pem
  8.  
  9. # provide the map to be used when SNI support is enabled
  10. tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
 
 
 
 
 
 
 

Was this answer helpful?

« Back

Powered by WHMCompleteSolution