When you set up a multifunction device or application to send email through Office 365, there are some cases where the device or application can’t connect directly to Office 365. In these cases, you need to set up Internet Information Services (IIS) to work as an intermediary.
You might want to do this in the following scenarios:
Before proceeding, review How to set up a multifunction device or application to send email using Office 365 as there may be an available option that doesn’t require setting up an additional server to relay.
• These instructions can be modified for other SMTP relays that you might have in your organization.
• The SMTP component that’s discussed in this topic is in IIS 6.0, and support for IIS 6.0 has ended with the support of Windows 2003. This article is here for reference purposes, but we recommend that you use a supported version of Exchange Server instead of IIS SMTP. We will continue to do a “best effort support” on this feature, however, no bug fixes or improvements are being made to this product. We can continue to address functionality questions as best we can, but we can’t help with IIS 6.0 product issues or deep technical investigations. Please expect this product to be removed from future versions of Windows.
• Replace contoso-com.mail.protection.outlook.com with your own tenants mail exchanger address. You can find this by looking for the MX record of your domain in the admin.microsoft.com portal, located in the Setup section.
You can test SMTP relay services without using an separate LOB application or device.
To test SMTP relay services, use the following steps.
FROM: <source email address> TO: <destination email address> SUBJECT: Test email This is a test email sent from my SMTP server