Microsoft 365 mail roundtrip
Setup guide
Using contacts is the easiest way to setup the mail roundtrip in Microsoft 365.
For this you create two contacts in Microsoft 365. One contact is allowed to receive the mail send by the InfraSonar roundtrip service and the other contact is used to forward the mail back to InfraSonar to close the roundtrip.
It is also possible to use a mailbox instated of a contact for receiving email and setup a forwarding rule on the mailbox. This requires you however to turn off allow external forwarding which is not a Microsoft best practice.
Create two contacts
- Open the Microsoft 365 admin center
- Open the users menu and then select contacts
- Click add contact to create a mail roundtrip contact for receiving emails
- Set Display name to:
mailrountrip-receive
(Feel free to pick a different name) - Set Email to:
mailrountrip-receive@example.org
- Enable: Hide from my organization's global address list
- Set Display name to:
- Click add contact again to create the mail roundtrip contact forward to account
- Set Display name to:
mailrountrip-infrasonar
- Set Email to:
mail@mrt.infrasonar.com
- Enable:
Hide from my organization's global address list
- Set Display name to:
Setup rules
- Open the Exchange admin center
- Open the Mail flow menu and then select rules
- Click the Add rule button and select Create a new rule
- Name:
InfraSonar mail roundtrip
- Apply this rule if: Select The recipient and then is this person
- Select the mailrountrip-receive contact you created before
- Do the following: Redirect the message to these recipients
- Select the mailrountrip-infrasonar contact you created before
- Click Next
- Leave the rule settings
- Review and Finish
- Ensure the rule is enabled!
Known issues
When your mail roundtrip is failing, logs are flooding or your admin mailbox get's spammed with error messages check the following.
Roundtrip mails are potential marked as spam
As our mail roundtrip is send at a regular interval changes are that our outgoing roundtrip message is flagged as spam.
Return mails are caught by outbound spam protection.
Microsoft 365 Outbound spam protection potentially identify the outbound messages as suspicious. As Microsoft 365 protection depends on your subscription we urge you to look at the official documentation on how to configure outbound spam protection according to your needs.