I've just built a new server that's running PHP 8.1.5 and the latest version of OSTicket. We also recently updated our Exchange Server to 2019. I am unable to setup email fetching for a local mailbox on the server because we are using a wildcard certificate and I cannot setup IMAP or POP without getting another certificate (we've already tried the workaround to get IMAP and POP working with the wildcard cert with no success). So I was thinking I could use an O365 mailbox instead. When I setup everything in the OSTicket admin panel the "Sending email via SMTP" portion works without a hitch, however I cannot set up "Fetching Email via IMAP or POP" no matter which option I choose. I've followed all the videos, read any and all posts I can find pertaining to this error and none of the options are working. I should be able to use IMAP or POP through O365 right? Is there a reason it would need to go through our Exchange server? I'm almost at my wits end with this one.
The error is: TLS/SSL failure for outlook.office365.com: Unexpected TCP input disconnect