That's the assumption I made. Initially I was pulling IMAP from an Exchange 2019 server and sending SMTP direct to our eFa antispam gateway. Using telnet as a test, I could connect to the exchange, list and pull the first email, with all commands coming back with immediate answers. Same test of the SMTP sending an email and all responses were immediate, including the final . send command. I could perform both inside the time it would take from ost to add a reply to a ticket.
To make sure it wasnt the exchange or eFa, I created an email account on cPanel and updated the config of the email in ost. So now with ost sending to localhost, the timeout of 90 seconds is still unaffected. I know for sure that cPanel has no mail delay issues as we have other php/jquery based systems that send and receive emails immediately.
What I did notice on tailing the maillog on both eFa and cPanel was that ost always makes its first connection attempt to the smtp at the 78 second mark. At that moment, the entire smtp chatter and relay happens within 14ms, with mail delivery completing and outlook receiving the email about 7 seconds prior to ost updating the interface to show it has completed the transaction.
Just for laughs, I'm going to move the installation to a subfolder, create a new DB and create a new installation. I'll test the email aspect as the first action to see if an absolute brand new install creates the same issue.