Friday, 21 March 2014

Configure Outgoing Email for a SharePoint 2010 or 2013 Farm with Office 365 Exchange Account settings

Let us assume that Your computer is running SharePoint 2010 or 2013.
  •  If you have not installed and configured the SMTP service, before you configure outgoing email you must complete the steps in:
  • Install and configure the SMTP service

    Install and configure the SMTP service for Windows Server 2008

    To install the SMTP service

    1. Verify that the user account must be a member of the Administrators group on the front-end web server.
    2. Click Start--Administrative Tools, and then click Server Manager.
    3. In Server Manager, click Features--click Add Features
    4. On the Select Features page, select SMTP Server.

    5. Click Add Required Roll Services, and then click Next.
    6. Click Install.
    7. On the Installation Results page, ensure that the installation is complete,
      and then click Close.

      By default the IIS SMTP service, is not started and the startup type is: manual
      In Run--Services.msc


    8. We will need to change the default setting to: Automatic.
      Double click on the SMTP Service:  Simple Mail Transfer Protocol (SMTP) and, change the Startup type to:  Automatic.

    To install IIS 6.0 Management tools

    1. Verify that the user account must be a member of the Administrators group on the front-end web server.
    2. Click Start--Administrative Tools, and then click Server Manager.
    3. In Server Manager, click Roles.
    4. In the Application Server section, click Add Role Services.
    5. On the Select Role Services page, select Management Tools and IIS 6 Management compatibility, and then click Install.

    To configure the SMTP service

    1. Verify that the user account must be a member of the Administrators group on the front-end web server.
    2. Click Start--Administrative Tools, and then click Internet Information Services (IIS) 6.0 Manager.
    3. In IIS Manager, expand the server name.
    4. Right-click the SMTP virtual server that you want to configure, and then click Start.
    5. And then click Properties

    http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-93-49/0020.1.png

    Access tab

    Access tab - Authentication
    Select the Access tab -> Authentication
    In the Authentication windows select the option: Anonymous access


         Delivery Tab

             The Delivery tab use for: configure the IIS SMTP “interface” that communicate with the Exchange   online server.
Delivery Tab - Outbound security
Select the Delivery tab -> Outbound Security option.
In the Outbound Security window select the option: Basic Authentication We will need to provide the office 365 user credentials, that have Exchange online Mailbox. In our example, we will use the credentials of a user named: ***@onmicrosoft.com
In the Outbound Security window select the option: TLS encryption  ( For creating a secure communication channel to Exchange online ).

Delivery Tab - TCP port
Select the Delivery tab -> Outbound connection option.
The TLS port number that we use for communicating with the Exchange online  is: 587

Delivery Tab – Advanced
Select the Delivery tab -> Advanced option
In the Smart host text box we need to provide the Exchange online server name .
Find Exchange Online server name- Step -03

The section of: Fully qualified domain name is not a mandatory requirement. You can add the FQDN of the IIS SMTP server