Yea. I'm running the oauth2 email proxy (to connect to Microsoft 365) on the ITFLOW server.
Something about the connection being unencrypted makes php imap_open very cranky.
I get an error message when manually calling the email parser now, but it still checks the box and downloads mail.
PHP Notice: PHP Request Shutdown: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN (errflg=1) in Unknown on line 0
PHP Notice: PHP Request Shutdown: Can't subscribe to mailbox {127.0.0.1:1993//validate-cert} ITFlow: invalid remote specification (errflg=2) in Unknown on line 0