locked
Configure incoming email for a SharePoint 2013 farm RRS feed

  • Question

  • Hello,

    I want to receive mails in my sharepoint document library. My mail service is perfectly fine. I am getting proper mails from my workflow and other activities. Even my incoming e-mail service is also running fine.

    I read your entire blog on this. But it is when you will create SMTP on same server.

    Here my SharePoint is on different domain and my SMTP is on different domain.

    When I perform nslookup this is what I got :

    C:\windows\system32>nslookup
    Default Server:  lmbsrhzwadc1.efron.com
    Address:  10.7.74.226

    > APPMAIL.EFRONOUTSOURCING.COM
    Server:  lmbsrhzwadc1.efron.com
    Address:  10.7.74.226

    Non-authoritative answer:
    Name:    APPMAIL.EFRONOUTSOURCING.COM
    Addresses:  192.168.70.109
              10.1.11.2

    My mail address pattern is <name>@EFRONMAILS.com

    Please guide me how can I set up incoming mails for my document library.

    I would be thankful to any type of help or guidance. *Due to confidentiality I have change the name of domains.

    Regards,

    Rujal jariwala


    Thursday, July 14, 2016 11:57 AM

Answers

  • Take a look at the following article.  It will walk you through the entire process including Exchange.

    https://blogs.technet.microsoft.com/harmeetw/2012/12/28/sharepoint-2013-configure-incoming-emails-with-exchange-server-2013/


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    • Marked as answer by Rujal Jariwala Wednesday, July 20, 2016 11:10 AM
    Saturday, July 16, 2016 4:26 PM
    • Install SMTP Server

      • Verify that the user account that is performing this procedure is a member of the Administrators group on the front-end web server.
      • Open Server Manager.
      • In Server Manager, click Add Roles and Features.
      • Click next to skip Role in Installation
      • On the Features screen, select SMTP Server.

      clip_image001[4]

      • In the Add Roles and Features Wizard dialog box, click Add Features, and then click Next.

      clip_image002[4]

      • On the Confirm Installation Selections page, click Install.
      • On the Installation Results page, ensure that the installation finished successfully, and then click Close.

      Configure SMTP Server

      • Open Internet Information Services (IIS) 6.0 Manager.
      • In IIS Manager, expand the server name that contains the SMTP server that you want to configure.
      • Right-click the SMTP virtual server that you want to configure, and then click Start.
      • Right-click the SMTP virtual server that you want to configure, and then click Properties.
      • On the Access tab, in the Access control area, click Authentication.
      • In the Authentication dialog box, verify that Anonymous access is selected.

      Click OK.

      • On the Access tab, in the Relay restrictions area, click Relay.
      • To enable relaying from any server, click All except the list below.
      • To accept relaying from one or more specific servers, follow these steps:
        1. Click Only the list below.
        2. Click Add, and then add servers one at a time by IP address, or in groups by using a subnet or domain.
        3. Click OK to close the Computer dialog box.
      • Click OK to close the Relay Restrictions dialog box.
      • Click OK to close the Properties dialog box.

      Set SMTP Service to start Automatically

      • Open Services.
      • In Services, right-click Simple Mail Transfer Protocol (SMTP), and then select Properties.
      • In the Simple Mail Transfer Protocol (SMTP) Properties dialog box, on the General tab, in the Startup type list, select Automatic.
      • Click OK.

      Create an OU in AD DS

      • Verify that the user account that is performing this procedure is a member of the Domain Administrators group or a delegated authority for domain administration on the domain controller that is running DNS Manager.
      • Click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
      • In Active Directory Users and Computers, right-click the folder for the second-level domain that contains your server farm, point to New, and then click Organizational Unit.

      Type the name of the OU, and then click OK. In my scenario I used the name as “SharePoint Contacts”

      Delegate Permission to Create and Delete all child objects

      • Verify that the user account that is performing this procedure is a member of the Domain Administrators group or the Enterprise Administrators group in AD DS, or a delegated authority for domain administration.
      • Right-click the OU, and then click Delegate control.
      • In the Delegation of Control Wizard, click Next.

      clip_image003[4]

      • Click Add, and then type the name of the application pool identity account for Central Administration.

      Click OK.

      Click Next.

      clip_image004[4]

      • On the Tasks to Delegate page of the Delegation of Control Wizard, select Create a custom task to delegate, and then click Next.

      Click This folder, existing objects in this folder, and creation of new objects in this folder, and then click Next.

      • In the Permissions section, select Create all Child Objects and Delete all Child Objects.

      Click Next.

      clip_image005[4]

      • On the last page of the Delegation of Control Wizard, click Finish to exit the wizard.

      clip_image006[4]

      Create Send Connector in Exchange Server

      Click on Mail Flow then Send Connectors

      Click on New Send Connector Icon and give it meaningful name and chose Internal

      clip_image007[4]

      • Choose “Route mail through smart hosts” and click on Add and provide SharePoint Server FQDN

      clip_image008[4]

      clip_image009[4]

      • Choose None as the Authentication method

      clip_image010[4]

      • Provide the FQDN of the SharePoint Server where SMTP role is installed and click on Save and then Next

      clip_image011[4]

      clip_image012[4]

      • On the Source Server screen add the exchange server and click on Finish

      clip_image013[4]

      clip_image014[4]

      • Ensure that the Connector status shows as Enabled

      clip_image015[4]

      Configure SharePoint Incoming Email

      • Make sure Microsoft SharePoint Incoming Email service is started. If its stopped, Start the service.

      clip_image016[6]

      clip_image017[6]

      • Then in Central administration System Settings >> Configure Incoming Email Settings set the settings as below.
        • Settings Mode: Advanced
        • Directory Management Service: Yes
        • AD Container: OU=SharePoint Contacts, DC=AD2012, DC=Loc
        • SMTP Server: FQDN of the Front End Server: SP2013Srv.AD2012.Loc

      clip_image018[4]

      clip_image019[4]

      Configure Document Library to Receive Email

      • Browse to a library >> Library Settings >> Incoming Email Settings to enable

      clip_image022[4]

      • Under Document Library Settings you can check the mail address.

      clip_image023[4]

      • Wooow it works:)

      clip_image024[6]

      Hope this will help you.

      Mark as answer if it helps you.

      Thanks

    Saturday, July 16, 2016 4:37 PM

All replies

  • The domain membership of the server doesn't matter.  What matters is how the Mail is configured to flow.  Normally when setting up incoming email you designate a subdomain of the email domain as the base address for all Sharepoint email.  For example SPT.Efronmails.com.  Then any email addressed to that subdomain is forwarded by the mail system to the SMTP service on the SharePoint server.  SharePoint will pick it up from there.  So for incoming email your pattern will need to be something like <name>@subdomain.efronmails.com.  Without the subdomain your regular email server won't know that the mail needs to be forwarded to SharePoint.

    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Thursday, July 14, 2016 12:29 PM
  • Hey Paul.

    Thanks for your response. Here I didn't get what do you mean by subdomain.

    We have one main domain EFRONOUTSOURCING under which we have multiple sub-domains like EFRONMAILS.

    Now how can I create subdomain.efronmails.com.

    We are using Microsoft Exchange 2013.

    I know what should I do to receive mail at SharePoint site.

    But I want exact steps for Mail Server side.

    Friday, July 15, 2016 6:41 AM
  • Take a look at the following article.  It will walk you through the entire process including Exchange.

    https://blogs.technet.microsoft.com/harmeetw/2012/12/28/sharepoint-2013-configure-incoming-emails-with-exchange-server-2013/


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    • Marked as answer by Rujal Jariwala Wednesday, July 20, 2016 11:10 AM
    Saturday, July 16, 2016 4:26 PM
    • Install SMTP Server

      • Verify that the user account that is performing this procedure is a member of the Administrators group on the front-end web server.
      • Open Server Manager.
      • In Server Manager, click Add Roles and Features.
      • Click next to skip Role in Installation
      • On the Features screen, select SMTP Server.

      clip_image001[4]

      • In the Add Roles and Features Wizard dialog box, click Add Features, and then click Next.

      clip_image002[4]

      • On the Confirm Installation Selections page, click Install.
      • On the Installation Results page, ensure that the installation finished successfully, and then click Close.

      Configure SMTP Server

      • Open Internet Information Services (IIS) 6.0 Manager.
      • In IIS Manager, expand the server name that contains the SMTP server that you want to configure.
      • Right-click the SMTP virtual server that you want to configure, and then click Start.
      • Right-click the SMTP virtual server that you want to configure, and then click Properties.
      • On the Access tab, in the Access control area, click Authentication.
      • In the Authentication dialog box, verify that Anonymous access is selected.

      Click OK.

      • On the Access tab, in the Relay restrictions area, click Relay.
      • To enable relaying from any server, click All except the list below.
      • To accept relaying from one or more specific servers, follow these steps:
        1. Click Only the list below.
        2. Click Add, and then add servers one at a time by IP address, or in groups by using a subnet or domain.
        3. Click OK to close the Computer dialog box.
      • Click OK to close the Relay Restrictions dialog box.
      • Click OK to close the Properties dialog box.

      Set SMTP Service to start Automatically

      • Open Services.
      • In Services, right-click Simple Mail Transfer Protocol (SMTP), and then select Properties.
      • In the Simple Mail Transfer Protocol (SMTP) Properties dialog box, on the General tab, in the Startup type list, select Automatic.
      • Click OK.

      Create an OU in AD DS

      • Verify that the user account that is performing this procedure is a member of the Domain Administrators group or a delegated authority for domain administration on the domain controller that is running DNS Manager.
      • Click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
      • In Active Directory Users and Computers, right-click the folder for the second-level domain that contains your server farm, point to New, and then click Organizational Unit.

      Type the name of the OU, and then click OK. In my scenario I used the name as “SharePoint Contacts”

      Delegate Permission to Create and Delete all child objects

      • Verify that the user account that is performing this procedure is a member of the Domain Administrators group or the Enterprise Administrators group in AD DS, or a delegated authority for domain administration.
      • Right-click the OU, and then click Delegate control.
      • In the Delegation of Control Wizard, click Next.

      clip_image003[4]

      • Click Add, and then type the name of the application pool identity account for Central Administration.

      Click OK.

      Click Next.

      clip_image004[4]

      • On the Tasks to Delegate page of the Delegation of Control Wizard, select Create a custom task to delegate, and then click Next.

      Click This folder, existing objects in this folder, and creation of new objects in this folder, and then click Next.

      • In the Permissions section, select Create all Child Objects and Delete all Child Objects.

      Click Next.

      clip_image005[4]

      • On the last page of the Delegation of Control Wizard, click Finish to exit the wizard.

      clip_image006[4]

      Create Send Connector in Exchange Server

      Click on Mail Flow then Send Connectors

      Click on New Send Connector Icon and give it meaningful name and chose Internal

      clip_image007[4]

      • Choose “Route mail through smart hosts” and click on Add and provide SharePoint Server FQDN

      clip_image008[4]

      clip_image009[4]

      • Choose None as the Authentication method

      clip_image010[4]

      • Provide the FQDN of the SharePoint Server where SMTP role is installed and click on Save and then Next

      clip_image011[4]

      clip_image012[4]

      • On the Source Server screen add the exchange server and click on Finish

      clip_image013[4]

      clip_image014[4]

      • Ensure that the Connector status shows as Enabled

      clip_image015[4]

      Configure SharePoint Incoming Email

      • Make sure Microsoft SharePoint Incoming Email service is started. If its stopped, Start the service.

      clip_image016[6]

      clip_image017[6]

      • Then in Central administration System Settings >> Configure Incoming Email Settings set the settings as below.
        • Settings Mode: Advanced
        • Directory Management Service: Yes
        • AD Container: OU=SharePoint Contacts, DC=AD2012, DC=Loc
        • SMTP Server: FQDN of the Front End Server: SP2013Srv.AD2012.Loc

      clip_image018[4]

      clip_image019[4]

      Configure Document Library to Receive Email

      • Browse to a library >> Library Settings >> Incoming Email Settings to enable

      clip_image022[4]

      • Under Document Library Settings you can check the mail address.

      clip_image023[4]

      • Wooow it works:)

      clip_image024[6]

      Hope this will help you.

      Mark as answer if it helps you.

      Thanks

    Saturday, July 16, 2016 4:37 PM