Sending mail from network devices through Office 365
You just completed a migration to Office 365 for all your users but now you need to relay mail from network devices like copiers and scanners. You will need to setup a relay connector in Office 365 to allow these simple SMTP devices to relay mail to you or other 3rd party email addresses.
Below is the basic instructions on how to allow mail from a known IP address to pass through your Office 365 Exchange service.
- Obtain the public IP address you’re using when mail goes out from scanner.
- Log on to the Office 365 Portal.
- Select Domains. Highlight one of your domains and use the wizard to obtain your MX record. The MX record will look similar to contoso.com.mail.protection.outlook.com. Make a note of the MX record for later.
- In the upper right, select Admin and then select Exchange from the drop down.
- In the Exchange Admin Center, select Mail Flow > Connectors.
- If no inbound connector exists, create one.
- Give the connector a name.
- Select On-Premises for the Connector Type.
- Under Domains, add a single asterisk (*). This will allow sending to any domain. Other values in this field will limit the domains that you can send mail to.
- In the IP Addresses section, add the IP address from Step 1.
- Leave all the other fields with their default values and select Save.
- In the DNS for your domain, I suggest that you modify your SPF record to include the IP address from Step 1. The finished string should look similar to this: v=spf1 ip4:10.1.2.3 include:spf.protection.outlook.com ~all where 10.1.2.3 is your public IP address. Skipping this step could cause email to be sent to recipients’ junk mail folders.
- In the device’s settings, specify a Smart Host value equal to the MX record value you recorded in Step 3.
- That’s it!