Receiving Emails Onto Document Library In SharePoint (On-Premise)

Incoming email is a very useful feature in SharePoint Servers, wherein it enables the document libraries to receive and store emails. This is also a pre-requisite for enabling lazy approvals in Nintex workflows that empower users to take quick actions on workflows through emails using pre-defined key phrases.

You may find many related posts on the internet but each one of them would be tackling only a portion of this. I had to spend quite a lot of time to put the pieces together and find only the absolute necessities, avoiding any overkill. So, I thought of posting this comprehensive guide that walks you through the end-to-end procedure. Hopefully, this will save you some time and effort if you have a similar need.

I performed this on the SharePoint 2013 Server but the same procedure could be applied to 2016 and 2019 as well.

This feature is safe to use for internal user emails. If you would like your SharePoint document library to receive external users, be sure to check your corporate policies.

The configuration can be divided into three parts…

  • Part 1: Configure SMTP service on the SharePoint Server
  • Part 2: Configure Incoming Email on SharePoint via Central Admin
  • Part 3: Configure Send connector in Exchange Server
Receiving Emails Onto Document Library In SharePoint (On-Premise)

In this article, we are covering Parts 1 and 2 and I will have part 3 covered in the next article.

The below procedure is applicable to SharePoint 2013, SharePoint 2016, and SharePoint 2019

This article describes how to configure incoming emails for SharePoint Server. This article also describes how to install and configure the SMTP service to enable the incoming emails.

When an incoming email is enabled, SharePoint sites can receive and store email messages and attachments in the lists and libraries. This article describes two scenarios - one basic and one advanced. The basic scenario applies to a single-server farm environment and is recommended if you want to use default settings. The advanced scenario applies to a single-server farm or a multiple-server farm and contains several advanced options from which to choose. 

Install SMTP Service on each WFE server

  • Log in to WFE servers using Farm account.
  • Click on Administrative Tools >>Server Manager.
  • Go to Add Roles and Features.
Receiving Emails Onto Document Library In SharePoint (On-Premise)

Click Next (with Role-based or Feature-based option selected).

Receiving Emails Onto Document Library In SharePoint (On-Premise)

Leave Server Selection pointing to the current WFE server.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

Go to Features and select SMTP Server.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

In the wizard that pops up, click on Add Features. Make sure that the Include Management Tools checkbox is checked.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

Do not select “Automatically Restart”, click Install.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

and go to the results.
 
Receiving Emails Onto Document Library In SharePoint (On-Premise) 

Click on Close.

Go to Desktop Search and type IIS. You should see the IIS 6.0 Manager. Run as Admin.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

Expand SMTP Virtual Server and add New Domain…

Receiving Emails Onto Document Library In SharePoint (On-Premise)

Select Alias and click Next.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

Enter the address space to match with the Exchange Send connector for this farm.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

On F: drive, create Drop folder under this path F:\inetpub\mailroot\<Folder>

Go to the Security on the Drop folder and edit the farm account and add Read & Execute permissions to it, add the WSS_ADMIN_WPG account with Full Control and add WSS_WPG account with "Read & Execute" permissions.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

and 
 
Receiving Emails Onto Document Library In SharePoint (On-Premise) 
On the default domain (the one by the machine name), click on Properties and select the Drop folder path.

Receiving Emails Onto Document Library In SharePoint (On-Premise)

In the Properties window,
 
Receiving Emails Onto Document Library In SharePoint (On-Premise)

Important: Repeat the process on the other WFE server as well. 

Now, you are done with your first step successfully. Let us go to the second step on our configuration.
 
Central Admin Configurations
  1. Launch CA http://<CentralAdmin>8888.
  2. Go to Incoming Email Settings under System Settings.
    • Set Enable Sites on this Server to receive an email to ‘Yes’.
    • Settings mode to ‘Advanced’.
    • Leave use SharePoint Directory Management Service at ‘No’.
    • In the Email Server Display Address box, type sharepointmail.<company>.com.
    • Email drop folder : F:\inetpub\mailroot\folder.
Receiving Emails Onto Document Library In SharePoint (On-Premise)
Receiving Emails Onto Document Library In SharePoint (On-Premise) 

Summary

 
Now that you have successfully configured incoming email settings in SMTP and on your SharePoint Central Admin which completes half of your configuration to receive emails to your SharePoint library; it is time to configure your Exchange for Send connector and SharePoint Library settings. I am covering this in the next part of this article series.