Using an Inbound shared mailbox
Creating an inbound shared mailbox
See Create a shared mailbox - Microsoft 365 admin for more information on how to create a shared mailbox in Microsoft 365.
Using an inbound shared mailbox for email processing
To set this up go to Messaging > Message Sources and press 'create'
Select 'Sign in with Microsoft'