An error occurred while saving the commentMark Weinhardt commented
Or, as I like to call it, "The way it worked in exchange before".
Create a shared mailbox. Create a service account. Grant service account access to shared mailbox. Apps use service account credentials to access shared mailbox. No license incurred.