I'm having trouble with IMAP SSL certificate errors

Question:

We have a server with both internal and external interfaces, but the certificate used on the server is the same for both. This is creating PHP errors like this:

PHP Notice: Unknown: Certificate failure for example.com: Server name does not match certificate

We can't change the certificate setup. Is there any way to stop this error?

Answer:

Make sure you have updated to the latest Deskpro. You will see an option to Disable certificate validation in the settings for the email account. Enabling this for the affected IMAP account will skip the certificate check and prevent the error.