Hey guys,
on the new iOS 17 (amazing update) there's a known issue on iOS / iPhone where IMAP accounts are not pulling emails via Apple Mail app, but they work fine with Outlook client for example.
The release notes say:
Mail is unable to fetch new email from IMAP servers using the NAMESPACE...