Home > error, MOSS, MS SharePoint Sever, sharepoint, sps, Uncategorized > Email enable a sharepoint document library

Email enable a sharepoint document library

To enable a document library to receive emails, first you have to enable this feature in Central Administration -> Operations -> Incoming email settings. Only after that you will see a link in Document Library settings as “Incoming email settings”.

So here is how we do it:
In IIS our default smtp is vanillargk.sydney.wu.local (taking into account my virtual machine, here my machine name is vanillargk and local domain is sydney.wu.local, domain could be seen in IIS). Mail Server is specified in Central Admin -> Operations -> Incoming email settings…….Select “Yes” for “Enable sites on this server to receive email?” radio button.  For “Directory Management Service” you may leave it as “No”. For “Email Server Display Address” put your “mail server”, in my case it would be vanillargk.sydney.wu.local. Select any mail drop folder, or let it be as default “c:\inetpub\mailroot\drop”.

Now go to doc lib settings -> Incoming email settings and in Email Address field just give email address like “checkmail” or anything that you may like………….”@vanillagrk.sydney.wu.local” will be already there as readonly…………..so your email address will become checkmail@vanillargk.sydney.uw.local. Make sure you select “Yes” for the option saying “Save original e-mail?”……the default value is probably set as “No” which will not let email messages appear in the doc lib. For the time being select “Accept e-mail messages from any sender” in “Email security policy” option. Once its working, you can select “Accept e-mail messages based on doc lib permissions” option to comply with doc lib security settings.

So now how do we receive mail? For a server or a machine to receive emails, it has to have two things: a DNS entry and an SMTP entry. Such that when an email comes from somewhere outside, it is routed to the specific machine (using DNS) and that machine is known to everyone as a Mail Server (using SMTP entry). DNS entry is obviously made in the DNS Server. The domain controller running Active Directory has a Mail Exchanger (MX) entry in DNS Manager for the Mail Server that you plan to use for incoming e-mail. So, in our case both of these entries should be made using vanillargk.sydney.wu.local.

 These entries are made by the Infrastructure guys, dont worry if you dont know how to do it, just ask your IT team to make these entries for you.

This is how it will be done by the way:
Add a Mail Exchanger (MX) resource record for the subdomain In DNS Manager, select the forward lookup zone for the domain that contains the subdomain for Office SharePoint Server 2007. Right-click the zone, and then click New Mail Exchanger. In the Host or domain text box, type the host or subdomain name for Office SharePoint Server 2007. In the Fully qualified domain name (FQDN) of mail server text box, type the fully qualified domain name for the server that is running Office SharePoint Server 2007. This is typically in the format subdomain.domain.com. Click OK.

Remember, SMTP service should be enabled on your machine which you intend to use as a mail server. In our case it is the machine on which our doc libs reside i.e. sharepoint server. This is how you do it:

  1. Start Control Panel Add/Remove Programs.
  2. Click Add/Remove Windows Components.
  3. After the Windows Components Wizard appears, select Applications Server and click Details.
  4. Select Internet Information Services (IIS), then click Details.
  5. Select SMTP Service, then click OK.
  6. Continue to click OK to close all other dialog boxes until you’re back at the Windows Components Wizard page, then click Next.

After all this, your doc lib is ready to receive emails. Try and let me know :).

Hope this helps…..

  1. Martin Cusack
    April 13, 2009 at 3:45 pm

    This is the same issue i am trying to figure out. I have commited all the steps here but there is a slight difrance in our server structure.
    Our exchange mail server is another machine all together and the smtp is located on the exchange server would this require a diffrent setting and if so I am assuming that the proper one would be to point the email server to the proper host. That being said any idea why mail is not being picked up by the list ?

  2. April 14, 2009 at 7:15 am

    Do you receive any Undeliverable messages from Exchange? If yes, whats the error message that you receive?

    For example, if your mail server is mail.abcdef.com.au, you will specify abcdef.com.au in Central Admin.

    And how have you configured your mail drop folder?

  3. Hammad Umar
    March 25, 2010 at 11:04 am

    Hi Rehman.. i have make all the settings for incoming email, but i am unable to receive email in document library. no Undeliverable message from Exchange server. Pleases advice.

  4. April 12, 2010 at 1:51 am

    Are you connected with exchange at all?

  5. July 1, 2010 at 7:39 am

    Thanks Rehman,
    Good detailed writeup. I am gona try this out Hope I can get it working on first attempt itself with your detailed steps.
    Thanks & Regards

  6. September 30, 2010 at 3:44 pm

    Good overview. I have one question to take it a step farther.

    Is there a way to programatically enable a Doc library when a site is created?


  7. October 1, 2010 at 1:21 am

    well, I havent tried that but my gut feeling is that you should be able to do that given the other settings like DNS and SMTP are in place.


  8. James Lee
    February 2, 2011 at 12:38 am

    Actually we found out it is easier to use SharePoint list to save our emails. Unlike document library, there is one to one relation between list item and email. The attachments from one email are saved as attachments of one list item too. We are using http://anurasoftware.com email tracking list solution to track email related to same issue.

  9. Robert2012
    May 24, 2011 at 6:06 pm

    We are using http://anurasoftware.com/default.aspx#EmailEnabledDocLib to submit files to SharePoint. The good thing of this solution is that it creates document set automatically for each email received and the email content is saved with the document set.

  10. http://bestnaturalhealthsupplements.com
    March 21, 2012 at 1:41 am

    I wanted to visit and allow you to know how , very much I loved discovering your site today. I will consider it a good honor to do things at my business office and be able to make use of the tips shared on your web page and also participate in visitors’ feedback like this. Should a position of guest article writer become available at your end, you should let me know.

  1. January 9, 2010 at 7:08 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: