Configure an SMTP relay server with an Office 365 account

Source: Internet
Author: User

Microsoft offers 3 ways to set up a multifunction device (printer, scanner, etc.) or an application in your enterprise to send e-mail using Office 365:

    1. SMTP Client Submission

    2. Send directly

    3. SMTP Relay

The above 3 ways of introduction, we can refer to Techent link: https://technet.microsoft.com/zh-cn/library/dn554323 (v=exchg.150). aspx

I'm focusing on the 3rd approach: the deployment of SMTP relay

Application Scenarios

===================================================================

Recently in an Office 365 hybrid deployment project, a hybrid deployment customer wants to migrate all of the local Exchange 2010 mailboxes to Exchange online, and how to send e-mail messages to local multifunction devices and business applications for this situation. For example:

? customers have multiple scanners and printers locally, and you want to send scanned documents or printed documents to yourself or others by email.

Customer has multiple line-of-business applications (SHAREPOINT\OA\SQL) for approving notifications, or warning messages, etc.

Scheme

==================================================================

To send mail by setting up an SMTP relay server

Step 1: Install IIS and the SMTP service in Windows Server

Windows Server 2012 or R2

1) in Server Management (Server Manager), select Add Role (add Roles)

2) on the Before you begin page, make sure that the target server and network environment are ready for the roles and features that you want to install. Click Next.

3) on the Select Installation Type page, select Role-based or feature-based installation

4) on the Select Destination Server page, select a server from the server pool, select the server you want to install to run the SMTP service, and click Next

5) on the Select Roles page, tick Web Server (IIS), then click Next, click Add Features, and then click Next.

6) on the Select Role Services page, make sure that Basic Authentication Basic authentication is selected under Security, and then click Next

7) on the Confirm Installation Selections page, review your roles, features, and server selections. If you are ready to install, click Install

Installing the SMTP Service

1) Open Server Manager and then click Add Roles and features based on the server version

2) on the Add roles and Features page, click Server Selection, confirm that the server you need to install the SMTP service is selected, and then click Functions. On the "Select Features" page, click on the SMTP server, and then on the "Install additional Components" page, select the role you want to install and click "Next"

3) Click Install

4) After the installation is complete, you will need to restart the SMTP service (using Services.msc)

Step 2: Configure SMTP Relay

1) Open Internet information Services (IIS) 6.0

2) Right-click on SMTP Virtual Server and click Properties, as

650) this.width=650; "height=" 356 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/82/2B/wKiom1dNQI_ Gnzd4aadpvoizsjk963.png "border=" 0 "/>

3) in general, click Advanced, as

650) this.width=650; "height=" 498 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/82/2A/wKioL1dNQY3TaKTTAAEGZs1-1_ I089.png "border=" 0 "/>

4) Confirm that the SMTP port is 25

650) this.width=650; "height=" 349 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2B/ Wkiom1dnqjlsobcuaab-dng4axu752.png "border=" 0 "/>

5) in the Access bar, click Identity Authentication, and then tick: Anonymous access, such as

650) this.width=650; "height=" 459 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2A/ Wkiol1dnqzddijhzaaeaxnyjf3g778.png "border=" 0 "/>

6) If you need to allow all devices to connect to the SMTP Server, click Connect, and then select: Except for the following list, such as

650) this.width=650; "height=" 362 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2A/ Wkiol1dnqzhws7suaaeu44op0iy637.png "border=" 0 "/>

7) Next, click on the relay, select: Except for the following list, tick: All authenticated computers can be relayed, regardless of how they are set up in the table above, such as:

650) this.width=650; "height=" 404 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/82/2A/wKioL1dNQZKjzhp_ Aafjkzbders213.png "border=" 0 "/>

8) Click: Pass, then: Outbound Security, select: Basic Authentication, then enter the Office365 account and password, check the TLS encryption, such as:

650) this.width=650; "height=" 495 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/82/2B/ Wkiom1dnqjfgdgucaahtl5p479m413.png "border=" 0 "/>

9) Click: Outbound connection, confirm that the TCP port is 587, as follows

650) this.width=650; "height=" 426 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2B/ Wkiom1dnqjvjuiv2aadz9giadry803.png "border=" 0 "/>

10) Click: Advanced, enter the FQDN of the SMTP server, as follows

650) this.width=650; "height=" 368 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2A/ Wkiol1dnqznjfxj5aadchbelipi047.png "border=" 0 "/>

11) Mail Click: domain, click New---domain, select: remote domain, as follows

650) this.width=650; "height=" 162 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/82/2B/ Wkiom1dnqj2azzqfaabwjlojrpm881.png "border=" 0 "/>

650) this.width=650; "height=" 290 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2B/ Wkiom1dnqj7apxfqaadorjwqery829.png "border=" 0 "/>

12) Enter Office365 Default domain name, as follows

650) this.width=650; "height=" 285 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/82/2A/ Wkiol1dnqzyckeiiaadihmmhr-u961.png "border=" 0 "/>

13) Double-click the remote domain, tick: Allow incoming mail to be relayed to this domain, and forward all messages to the smart host: smtp.partner.outlook.cn

650) this.width=650; "height=" 466 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/82/2B/ Wkiom1dnqkca6oxiaadjbcue5f8850.png "border=" 0 "/>

14) Click: Outbound Security, select: Basic Authentication, enter Office365 account and password, check TLS encryption, as follows

650) this.width=650; "height=" 354 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/82/2A/ Wkiol1dnqakhu23uaaekaicjb-o522.png "border=" 0 "/>

Step 3: Test the SMTP Relay

1) Create a TXT document, named Email.txt, with the following content:

From:[email protected]

To:[email protected]

Subject:test Email from SMTP

This was a test email sent from my SMTP server

2) Copy the Email.txt to the following path C:\inetpub\mailroot\pickup

650) this.width=650, "height=", "title=" clip_image014 "style=" margin:0px;border:0px;padding-top:0px;padding-right : 0px;padding-left:0px;background-image:none; "alt=" clip_image014 "src=" http://s3.51cto.com/wyfs02/M01/82/2B/ Wkiom1dnqkwti5wmaaajlimeviw751.png "border=" 0 "/>

3) Wait a moment, the mail will enter the C:\inetpub\mailroot\Queue, such as

650) this.width=650; "height=" "title=" clip_image015 "style=" border:0px;padding-top:0px;padding-right:0px; Padding-left:0px;background-image:none, "alt=" clip_image015 "src=" http://s3.51cto.com/wyfs02/M01/82/2A/ Wkiol1dnqakwdh_yaaakomssrhs280.png "border=" 0 "/>

4) After that, the test message will be sent out and if it fails, the message will be moved to C:\inetpub\mailroot\Badmail and we can view the Badmail for more information.

Configure an SMTP relay server with an Office 365 account

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.