Configure IIS as SMTP relay server for Office 365
By: Emiley J in Office365 Tutorials on 2012-03-16
While migrating to Office 365, one of the issues you will face (and often forgotten) is to support legacy applications or websites that send out emails. For example, a feedback page on the customer website, will have to send an email by connecting to the SMTP server. Or another common scenario is when you have Printers, these printers usually will send emails after scanning, or after receiving a fax etc.. Here is a solution.
After migrating to Office 365 and you remove your on-premise exchange server, you will no longer have any SMTP server to point to. Therefore you can point them to Office 365. The only problem is that Office 365 uses TLS. Therefore some legacy applications may not support it. To resolve this issue you can configure one of your IIS servers to act as an SMTP relay server, so that your printer or applications can point to this IIS server for sending out emails, but your IIS server will just relay these emails to Office 365 server for sending out. The steps below explain how to configure your IIS to act as SMTP relay server for Office 365.
To configure Internet Information Services (IIS) so that your LOB programs can use the SMTP relay, follow these steps:
- Create a user who has an Exchange Online mailbox. To do this, use one of the following methods:
- Create the user in Active Directory Domain Services, run directory synchronization, and then activate the user by using an Exchange Online license.
Note The user must not have an on-premises mailbox. - Create the user by using the Office 365 portal or by using Microsoft Online Services PowerShell Module, and then assign the user an Exchange Online license.
- Create the user in Active Directory Domain Services, run directory synchronization, and then activate the user by using an Exchange Online license.
- Configure the IIS SMTP relay server. To do this, follow these steps:
- Install IIS on an internal server. During the installation, select the option to install the SMTP components.
- In Internet Information Services (IIS) Manager, expand the Default SMTP Virtual Server, and then click Domains.
- Right-click Domains, click New, click Domain, and then click Remote.
- In the Name box, type *.com, and then click Finish.
- Double-click the domain that you just created.
- Click to select the Allow incoming mail to be relayed to this domain check box.
- In the Route domain area, click Forward all mail to smart host, and then in the box, type the mailbox server name.
- Click Outbound Security, and then configure the following settings:
- Click Basic Authentication.
- In the User name box, type the user name of the Office 365 mailbox user.
- In the Password box, type the password of the Office 365 mailbox user.
- Click to select the TLS encryption check box, and then click OK.
- Right-click the Default SMTP Virtual Server node, and then click Properties.
- On the Delivery tab, click Outbound Connections.
- In the TCP Port box, type 587, and then click OK.
- Click Outbound Security, and then configure the following settings:
- Click Basic Authentication.
- In the User name box, type the user name of the Office 365 mailbox user.
- In the Password box, type the password of the Office 365 mailbox user.
- Click to select the TLS encryption check box, and then click OK.
- On the Access tab, click Authentication, click to select the Anonymous access check box, and then click OK.
- On the Relay tab, select Only the list below, type the IP addresses of the client computers that will be sending the email messages, and then click OK.
Add Comment
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
- Your name, rating, website address, town, country, state and comment will be publicly displayed if entered.
- Aside from the data entered into these form fields, other stored data about your comment will include:
- Your IP address (not displayed)
- The time/date of your submission (displayed)
- Your email address will not be shared. It is collected for only two reasons:
- Administrative purposes, should a need to contact you arise.
- To inform you of new comments, should you subscribe to receive notifications.
- A cookie may be set on your computer. This is used to remember your inputs. It will expire by itself.
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
- Although the administrator will attempt to moderate comments, it is impossible for every comment to have been moderated at any given time.
- You acknowledge that all comments express the views and opinions of the original author and not those of the administrator.
- You agree not to post any material which is knowingly false, obscene, hateful, threatening, harassing or invasive of a person's privacy.
- The administrator has the right to edit, move or remove any comment for any reason and without notice.
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
- Data Science
- Android
- React Native
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Copy Power Automate Flows from one environment to another
Moving changes from a development environment (sandbox) to a production environment in Dynamics 365
Microsoft Flow to sync data from SharePoint list update/delete records to Dataverse Table
Steps to create Microsoft Flow to sync data from SharePoint list to Dataverse Table
ADFS and ADFS Proxy in Windows Server 2012
365 office login (office 365 login)
Configure SSO for a domain with ADFS - Convert a domain to a federated domain in Office 365
What is Office 365 Small Business Premium?
What is Ofice 365 Home Premium
What is Office 365 Midsize Business Plan?
Migration from on-premise exchange 2003 to Office 365
Create Word, Excel, PowerPoint using Office Web Apps in Office 365
On-premise Exchange and Lync Online integration
Email limits and message limitations in Office 365
Migrating SharePoint WSS2.0 site to SharePoint Online and Backup the SharePoint Online
Comments