Introduction
If you're running into issues with your SSL certificate working for Apache but not for services such as dovecot (mail clients), it may be necessary to rebuild your Dovecot SNI configuration.
Procedure
First, you will want to connect to your server via SSH as the root user and make a copy of your dovecot SNI file:
cp -via /etc/dovecot/sni.conf{,.$(date +%s).bak}
Next, use the following script to rebuild the Dovecot SNI configuration file:
/scripts/build_mail_sni --rebuild_dovecot_sni_conf
Finally, restart the related services:
/scripts/build_mail_sni --restartsrvs
Thanks