Wednesday, July 3, 2013

SharePoint 2013 Incoming Email Configuration

1) Browse to SharePoint central Administration -> System Settings -> Incoming E-mail Settings.

2) You will get a message saying SMTP service is not installed.

3) Open Server Manager -> Dashboard -> Add roles and features.

4) Login to one of the web front ends where we are going to enable Microsoft SharePoint Foundation Incoming E-Mail service. Make sure that the service Microsoft SharePoint Foundation Incoming E-Mail is disabled on all other servers.

5) Open the Server Manager ->Configure this local server -> Add roles and features. Click Next.

6) Choose Role based or feature-based installation and click Next.

7) Select the server and click Next.

8) Choose Features from the left navigation and select SMTP Server. Click on Add Features. Click Next.

9) Click Install.

10) Browse to services.msc. You will see that SMTP service is present now and is in Running state.

11) Open IIS 6.0 Manager. Click on the server name on the left pane.

12) Click on the default domain name on the right hand side of the screen and click Properties. The drop directory details is shown here.

13) By default the domain name is listed as servername.domain.com.

14) In our case I created an alias. Click on Domain on left navigation -> New -> Domain.

15) Specify the domain type as Alias. Click Next

16) Enter the alias name. Click Finish.

17) Now browse to Central Administration -> System Settings -> E-Mail and text Messages (SMS) -> Configure e-mail settings.

18) Enable sites on this server to receive e-mail? - Yes

19) E-mail server display address: Enter the alias name you entered in step 14.

20) Click OK.

21) Now browse to a site where the incoming email setting is going to be enabled. Go to the document library where setting is going to be enabled. Go to the document library settings page->Communications -> Incoming e-mail settings

22) Make the appropriate choices and click OK.

23) The configuration from SharePoint side ends with this. The next step is to be done on the Exchange server.
 Connect to Exchange Server>Launch exchange Management Shell (Elevated).Both the below scripts should be run from elevated EMS.
a. Create a new connector:

new-SendConnector -Name 'Connector Name' `
      -Usage 'Internal' `
      -AddressSpaces 'SMTP:AliasDomainName;1' `
      -IsScopedConnector $false`
      -DNSRoutingEnabled $false `
      -SmartHosts 'SharePoint web server name (where SMTP server is installed)'`
      -SmartHostAuthMechanism 'None' `
      -UseExternalDNSServersEnabled $false `
      -SourceTransportServers 'Exchange Server Name'


b. Create an accepted domain in Exchange Server

New-AcceptedDomain -Name ' Alias Domain Name ' `
      -DomainName ' AliasDomainName ' `

      -DomainType InternalRelay


24) Now try sending the emails to your document library email address. If the mails are not being received in the document library, make sure that the SMTP server is running on the server. (Open IIS 6.0 Manager. Click on the server name on the left pane -> SMTP Virtual Server -> Start)

25) If you face issues where the email gets stuck in the drop folder, refer this post.








2 comments:

  1. Is there any way that SharePoint can receive incoming without using Exchange?

    ReplyDelete
  2. I have not tried that.But please refer to my post which helps you to configure Outgoing Email in SharePoint 2010 using Gmail.Use this as a starting point for your requirement.
    http://www.sharepointpitstop.com/2012/04/configure-outgoingemail-sharepoint-gmail.html

    ReplyDelete