We have been informed that Microsoft is Deprecating Basic authentication in Exchange Online which means IMAP will be blocked.
Is there another way to connect a group mailbox using office 365? for inbound emails as IMAP seems to be only protocol we can select.