Ah, I think the issue is that at the moment you can’t easily authenticate for receiving emails via Microsoft365, do to security on the Microsoft side.
There is this very useful post, but you will need Azure AD admin access. I haven’t tried this myself as I only need to send emails from ERPNext via Microsoft365, rather than receive emails.