SharePoint 2010 配置 incoming email 步骤

本文提供了一步一步的指南,介绍如何配置SharePoint 2010与Exchange 2010配合,实现电子邮件直接送达SharePoint Web应用程序。包括设置SMTP服务、Exchange连接器、目录管理服务等。
摘要由CSDN通过智能技术生成

http://www.cnblogs.com/yunliang1028/archive/2012/11/28/2792338.html

Today we continue down our journey in setting up our SharePoint 2010 farm, with the focus on configuring incoming email for SharePoint 2010.  When SharePoint 2007 was released, there was a lot of discussion and rumors around Exchange 2007 being the last version of Exchange to provide Public Folder support, and that SharePoint 2007 was going to be it’s alternative. Microsoft quickly changed its stance and continues to support Public folders in Exchange 2010.  However, there still might be a number of compelling reasons why you would want to consider storing incoming email messages in SharePoint 2010 document libraries, instead of public folders.  You can read more about the benefits of using email-enabled SharePoint libraries in one of my article’shere.

In today’s post, I will provide you with a comprehensive step by step guide in configuring your SharePoint 2010 server in conjunction with Exchange 2010, to provide successful delivery of incoming email directly to your SharePoint Web Applications.

The environment

This article builds on the SharePoint Farm setup that I have documented here. It consists of the following servers which would form a common basis in most large organizations.

  • Windows 2008 R2 server running Active Directory Domain Services
  • Windows 2008 R2 server running SQL 2008 R2
  • Windows 2008 R2 server running SharePoint 2010 RTM
  • Windows 2008 R2 server running Exchange 2010 RTM
  • Windows 7 client running Office 2010 RTM

The SMTP service

SharePoint 2010 is reliant on the SMTP service which is a Windows 2008 feature and we must install this on our SharePoint 2010 front-end web server.

Navigate to your Start Menu / Administrative Tools / Server Manager.  Click on the Features node and select Add Feature.  Scroll down and select SMTP Server and click on Add Required Role Services.

image thumb1 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next, Next and Install.

image thumb2 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Close

We now need to install the II 6.0 Management Tools on our Windows 2008 R2 server in order to configure our SMTP service.  If IIS 6.0 Manager is not already installed you must do so via, Start / Administrative Tools / Server Manager.  Click on the Roles node and select Role / Add Role Services.  Then select Management Tools and IIS 6 Management compatibility.  Click Install.

We can now launch the IIS 6 Manager via Start / Administrative Tools.

image thumb3 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Right click on SMTP Virtual Server #1 and select properties.

Under the General tab, I have enabled logging and encourage doing so at the start in the event we need to do some troubleshooting.  You can turn logging off after successful testing.

image thumb4 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click on the next tab, “Access”.

Click on “Authentication” and ensure that Anonymous access is selected.

image thumb5 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Next, click on “Connection” and ensure “All except the list below” is selected.

image thumb6 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Finally, click on “Relay”, and ensure that “Only the list below” is selected and that “Allow all computers which successfully authenticate to relay, regardless of the list above” is also checked.

image thumb7 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Now click on the Messages Tab and make any necessary adjustments that you see fit, such as potentially increasing the message size to allow for the delivery of larger emails with attachments into your SharePoint Libraries and Lists.

image thumb8 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Next click on the Delivery Tab in which I normally leave all the defaults in place.

image thumb9 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

We can skip the LDAP routing tab as there are no settings required to be configured in this area.

Lastly, the Security tab should list the default permissions as per the below.  No changes are necessary in this area.

image thumb10 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

We next journey into the “Domains” are within IIS 6 Manager and a domain name should be listed, which by default is the fully qualified domain name of the machine.

Right click on the Domain Name and select properties and take note of the Drop directory.

image thumb11 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Finally, we now just need to confirm that our SMTP service is set to start automatically in the event the server is restarted.  I can tell you now that the service is by default set to Manual.

Venture into Start / Administrative Tools / Services.

Scroll down your list of services and ensure that the Simple Mail Transfer Protocol (SMTP) is set to Start-up type, Automatic.

image thumb12 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

We have now completed the configuration of our SMTP service on our SharePoint Server.

Exchange 2007/2010 Connectors

Part two of the implementation of configuring incoming email in SharePoint is to configure our connectors in Microsoft Exchange.  Now even though this is not a requirement, most organisations running SharePoint 2010 or 2007 will also be running a recent version of Microsoft Exchange, hopefully either 2007 or 2010.  Exchange 2010 or 2007 will provide you with that extra layer of protection ensuring that all the necessary message hygiene has been performed via its inbuilt Anti Spam Agents on the Edge or Hub Transport Server in conjunction with some form of email antivirus such as Microsoft’s Forefront for Exchange, before the message is delivered to the SharePoint 2010 List or Library.

My instructions and screen captures below are from an Exchange 2010 server which are pretty much identical and applicable to Exchange 2007.

Let’s begin by launching the Exchange Management Console / Organization Configuration / Hub Transport.

Click on Send Connectors / Actions / New Send Connector.

Type in a descriptive name for your Send Connector and then select Internal as the type.

image thumb13 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Add and enter the Address space as the fully qualified domain name of the server where the SMTP service is installed (i.e. your SharePoint Server)

image thumb14 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next

Enter the IP address of the server which also hosts the SMTP service.

image thumb15 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next

Select “None” as your smart host authentication settings

image thumb16 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next

Ensure your Hub Transport Server has been added.

image thumb17 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next

image thumb18 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click New and then click Finish

The end result will be that the Send connector will route email to the SMTP service sitting on our SharePoint Server.

image thumb19 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

The Directory Management Service

SharePoint 2010 allows you to leverage Active Directory Domain Services (AD DS) so that contacts that are created when you email enable document libraries or lists are stored in a designated Organizational Unit within your AD DS infrastructure.  So why would you want to enable Directory Management Service?  Purely for the fact that by storing these contacts in AD, you are allowing your users to locate email enabled libraries and lists easily from within their Outlook Address book.

Let’s begin by creating an Organizational Unit in Active Directory.

From your Active Directory server, click Start / Administrative Tools / Active Directory Users and Computers.

Right click on your domain object and select New / Organizational Unit

Type in a descriptive name

image thumb20 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Ok.

The next step is imperative and very important that we get this right.  I have seen on many occasions where incorrect permissions were applied and all sorts of problems were encountered when libraries or list were email enabled.

In summary, we need to provide our Central Administration Application pool identity account specific permissions to our recently created Organizational Unit to be used for creating and deleting contacts for our SharePoint 2010 libraries and lists when they are either email enabled or email disabled.

Right click on the recently created Organizational Unit and click on Delegate Control.  This will invoke the Delegation of Control Wizard.

image thumb21 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next.

We will now add the Central Administration application pool account which you can confirm from IIS Manager as per the below screen capture.

image thumb22 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Add the necessary Account.

image thumb23 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next.

Click Create a custom task to delegate.

image thumb24 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next

Click “This folder, existing objects in this folder, and creation of new objects in this folder’.

image thumb25 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Next

Click on Create All Child Objects and Delete All Child Objects.

image thumb26 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click Finish.

Before we finish off our configuration of AD DS and the Directory Management Service we need to provide our Central Administration application pool account with Delete Subtree permissions.

We need to ensure that “Advanced Features” from within Active Directory Users and Computers (ADUC) is active before we venture into the security tab of our SharePoint organizational unit.  If you do not enable Advanced Features, the security tab will not be visible.

From within ADUC, click on View and select Advanced Features.

Right click on our SharePoint 2010 Organizational Unit and select Properties.

Click on the Security Tab / Advanced /and Edit the CA Application Pool Identity Account.

image thumb27 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Select Allow for “Delete Subtree”

image thumb28 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click on OK and Apply.

After assigning these permissions, you must run IISRESET on your SharePoint server.

Configuring Incoming e-mail settings in Central Administration

Navigate to Central Administration / System Settings / Configure incoming e-mail settings.

image thumb29 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Select Yes to “Enable site on this server to receive e-mail”

Select “Automatic” for Setting mode.

Select “Yes” to use the SharePoint Directory Management Service to create distributions groups and contacts.

Enter your Active Directory container details, i.e. the Organizational Unit container that we created specifically for our SharePoint 2010 contacts.

Ensure that your SMTP server details are correct, this should be the fully qualified domain name of your SMTP service that was installed on your SharePoint Server.

image thumb30 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Finally, ensure “Accept mail from all e-mail servers” is selected.

image thumb31 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click OK.

Please note that this process will configure the necessary permissions on the email drop folder listed in IIS 6 Manager.  In summary, the following permissions are added;

WSS_Admin_WPG – Full Control and

WSS_WPG – Read & Execute / List folder Contents / Read

image thumb32 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Ensure that these accounts are added successfully and on the rare occasion in which it isn’t, you will need to add them manually.

Testing the configuration

From within any document library or list, click on Library / Library Settings.

image thumb33 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click on Incoming e-mail settings.

Select “Yes” to allow this document library to receive e-mail.

Select your email attachment options and ensure that Save original e-mail is set to Yes.

Lastly, ensure that you Accept e-mail messages from any sender is selected.

image thumb34 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Click OK.

This is your first step to ensure that all of the above configuration is in place.  If you do receive an error, it’s most likely going to be permissions related against your Organizational Unit, i.e. SharePoint may not have the privilege to add the contact in Active Directory.

Let’s navigate back to ADUC and confirm that our “testing” contact is created under the SharePoint 2010 Contacts Organizational Unit.

image thumb35 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Let’s next navigate to our Exchange 2010 server and ensure it is also listed there with an SMTP address against it.

Launch your Microsoft Exchange Management console and navigate to Recipient Configuration / Mail contact.

image thumb36 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Right click on the Contact and select Properties / E-Mail Addresses.

Ensure that both an internal and external routable email address is listed.

image thumb37 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

From your favorite email client, send a test email to the document libraries’ external SMTP address.

Navigate to your recently email enabled document library and hopefully after a couple of minutes (SharePoint Job timer service delay) you should have received your test email.

image thumb38 Configuring incoming email in SharePoint 2010 with Exchange   Step by Step Guide

Well! That’s all that is to it, from start to finish.  Apart from sending a test email, there are a couple of other scenarios that you should test to ensure complete seamless integration with the SharePoint 2010 Directory Management Service.  Within the same document library, modify the email address to something different and ensure that this change also flows through to Active Directory. You should also try disabling incoming email from that same library and ensure that the contact is completely removed from Active Directory.  If you pass all of these tests scenarios, then we are comfortable in knowing that the correct delegation was provided to our Central Administration Pool Account against our SharePoint Contacts Organizational Unit.

I hope you have found this step by step guide in configuring incoming email in SharePoint 2010 with Exchange useful, so stay tuned as we continue our journey in configuring our SharePoint 2010 Farm.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

http://social.technet.microsoft.com/Forums/projectserver/zh-CN/3127af1b-5ae8-492f-9fcd-10d33b2885f8/sharepoint-exchange

我在 http://social.microsoft.com/Forums/en/sharepointportalserverzhchs/thread/9e522eb8-0f20-4d13-b758-b2d39293010f 中给了详细诊断步骤

我想知道,你的 MX 记录是如何配置的?可按如下配置:


2.3 添加 MX
打开 abc.com 的 DNS,展开 forward lookup zone,右击 abc.com  节点,选择 New Mail Exchanger,输入:
Host or child domain: sharepoint
FQDN of mail server: sharepoint.abc.com

2.4 验证 MX,确保 exchange 服务器上能找到 sharepoint.abc.com 这个 MX:

在 exchange 服务器上(其实只要 exchange 所在域任何成员机)
WIN + R > cmd
输入命令 nslookup
输入命令 set type=max
输入 sharepoint.abc.com

如果返回类似 sharepoint.abc.com MX preference = 10, mail exchanger = sharepoint.abc.com 说明 MX 记录配置成功了,也就是你的 exhange smtp 能找到 sharepoint 这个 smtp 服务器了

2

我的理解是exchange把邮件通过smtp 转发到 sharepoint server上

========

其实,exchange 与 sharepoint incoming mail smtp 是正常的 SMTP 收发邮件过程, exchange 也是一个 smtp 服务器

Windows STMP 服务具有一个本地缺省域(一般是本机 FQDN,比如 sharepoint.abc.com),这个域是没有与 POP3 服务关联的,没有针对每个用户有一个 mailbox,而是使用一个 drop 文件夹来接受所有发到这个域的邮件,也就是说,发给user01@sharepoint.abc.com 与user02@sharepoint.abc.com 的邮件均进入这个 drop 文件夹

sharepoint 就是定期(通过 timer service)查询这个 drop 文件家,解析其中的 eml 文件,来添加到 list 或者 lib 中


转发是根据dns中的  sharepoint server的mx 记录实现路由的

========

mx 记录是邮件域所在的 DNS 服务器上配置的,对于你这个 sharepoint.abc.com 就是在 dc.abc。com 这个 DNS 服务器上配置,如何配置上面说了


sharepoint server 上的smtp  如你所说是检查 本机 drop folder 知道是否有邮件进入的

========

对,检查 drop 文件夹是否有 eml 邮件就能确定 smtp 服务是否能接到邮件,如果能接到文件了,又定期没了,说明被 sharepoint timer service 处理,但又没有写入 sharepoint list 中,说明可能是权限问题,可以现在 list/ incoming mail settings 中选择  Accept email messages from any sender, 然后再试

如果希望 Accept e-mail messages based on document library perssioms,也就说,只有具有写入这个 List 的用户的邮件才被添加进这个 List,SharePoint 是通过这个 SPUser 的 email 属性来对应发件人的,所以对于 AD 用户,可以设置这个 AD 用户的 mail,并用这个 mail 来发邮件,sharepoint 就会认这个邮件了

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SharePoint 2010 传入邮件无法将附件上传至文档库

在一片英文的帖子中提到了附件不能显示的问题,你需要到exchange中设置

This issue may caused by Exchange delivered the email with Rich Text format which has some issues with incomingemail feature of SharePoint. Please try the following steps:

1. Open Exchange Management Console
2. Go to Organization -> Hub Transport -> Remote Domains (Tab)
3. Create New Remote Domain
4. Name can be whatever you want e.g. SharePoint
5. Domain Name = <domain of SharePoint server> e.g.sharepoint.contoso.local
6. Click New to create that object
7. Then edit the new remote domain
8. Go to Message Format (TAB)
9. Under Exchange Rich-Text Format select “Never Use”

You can also refer to:http://www.yana.be/Lists/Posts/Post.aspx?ID=7

http://social.technet.microsoft.com/Forums/en-US/sharepointgeneralprevious/thread/6ba45d6f-c988-4ac1-a5b2-2f3d3dec1ac0/


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值