Showing posts with label SharePoint Incoming Email Configuration. Show all posts
Showing posts with label SharePoint Incoming Email Configuration. Show all posts

Friday, September 6, 2013

Incoming e-mail settings missing on Document Library Settings

When I browsed to the document library, I could not find the Incoming email settings link.



Resolution

Central Administration -> System Settings -> Configure incoming e-mail settings-> Enable sites on this server to receive e-mail? -> Yes




Also please refer to my post here.

Thursday, September 5, 2013

SharePoint 2013 Incoming Email Stuck in Drop Folder

Background

- I have a SharePoint 2013 farm with 7 servers (excluding DB)
5 App Severs and 2 Web Servers

- Microsoft SharePoint Foundation Incoming E-Mail service was already enabled on all the servers in the farm.

- From Exchange side, I had configured the 2 WFE to receive mails (let us call them WFE1 and WFE2 for now).I also installed SMTP server on both the WFE1 and WFE2.


Now the problem…

Mails were getting dropped on the Drop folder. But…but…..the Sharepoint list was not receiving the emails. This left me banging head against wall for few hours.
I had done this before on my SharePoint 2013 sandbox (single server farm )
I read and tried multiple of things to fix this. Finally what helped me is below.

1) I stopped the Microsoft SharePoint Foundation Incoming E-Mail service on all the servers.
 I read this article.

Key excerpts from the article

 “In SharePoint 2010, the Incoming Email service timer job had a SPJobLockType of None, which means that the job ran on all servers in the farm, given the Incoming Email service was provisioned.
In SharePoint 2013, that SPJobLockType has changed to Job, which means it only runs on a single member in the farm
SharePoint 2010:
public SPIncomingEmailJobDefinition(string name, SPService service) : base(name, service, null, SPJobLockType.None){}
SharePoint 2013:
public SPIncomingEmailJobDefinition(string name, SPService service) : base(name, service, null, SPJobLockType.Job){}

2) Based on the above info, I started the Microsoft SharePoint Foundation Incoming E-Mail service on just one of the WFE.The mails were stuck in the drop folder,still.

3) I restarted the SharePoint Timer Service (SPTimerV4) on all the (7) server in the farm.
Voila…
All the mails that were stuck in the Drop folder started delivering now.

Resolution

The fix is enable the Microsoft SharePoint Foundation Incoming E-Mail service on only one server in the farm and restart SharePoint Timer Service on all servers in the farm


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.