jump to navigation

Email enable a sharepoint document library April 9, 2009

Posted by rehmangul in MOSS, MS SharePoint Sever, error, sharepoint, sps.
Tags: , , , , , , , , , , , , ,
trackback

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…..

Comments»

1. Martin Cusack - April 13, 2009

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. rehmangul - April 14, 2009

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?