I have an internal app that needs to send emails on other people's behalf. For instance, I might need to send an email from [email protected], [email protected] and [email protected] to [email protected].
All our email is in Office365. Basically, this is relaying email and it does sound close to what spammers do.
Is this possible to with Office365? What permissions would the account need to have?
a lot has to do with how you are achieving this.
Using an "App", you would usually create a service account for this purpose, create a new role for this account and grant impersonation rights to the role.
Take a look at this question. The last answer references this technet guide that can walk you through the setup. We have accomplished this by adding a SMTP relay (mail flow connector) that validates our ip address.