When trying to configure an inbound email account, Im getting the following error:

Certificate failure for XXX.XXX.local: unable to get local issuer certificate: /CN=XXX
Please check your settings and try again.

I found a couple of PHP scripts to connect to the server via IMAP and confirm connection- we were able to make that work with a /non-validate-cert into the code. I cant find anything on here or online to help out. Is there an easy fix somewhere?