Using a noreply@companyName or web@companyName email address.
Log into your Magento Store and add the configuration above
Set up an exchange connector from “your organization’s email server” to Office 365, and specify by IP, and add your Magento 2 servers public IP.
Lastly: Make sure any other email addresses you want the email@example.com to send as, that THOSE accounts have the firstname.lastname@example.org address in its send-from field.
A: To reduce spam, Office 365 require the from email address to match the email sender address. To ensure that the email will go back to the correct department if the customer tries to reply to your emails please enable the reply-to setting.