Solved

Sharepoint Foundation 2010 - Problems sending email thru Exchange 2007 from Sharepoint site

Posted on 2011-02-12
4
2,269 Views
Last Modified: 2012-06-21
Here's my set up:

Sharepoint Foundation 2010
Exchange Server 2007
Windows Server 2008

A system-generated email is sent okay when creating a new Farm Administrator in Central Administration, but when creating a new Member on our Team Site, I get the following error:

The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your server administrator.

Here is what I've tried:

1. Creating a new Receive Connector as described at http://sharepointgeorge.com/2010/configuring-outgoing-email-sharepoint-2010/
2. Checked settings at Central Administration > Web Applications > General Settings > Outgoing Email: Have tried both the IP address for my Exchange/Sharepoint server (e.g. 10.1.10.11) and my regular mail.xxxx.com smtp address with the same results.
3. Checked settings at Central Administration > System Settings > Configure outgoing e-mail settings: Have tried both the IP address for my Exchange/Sharepoint server (e.g. 10.1.10.11) and my regular mail.xxxx.com smtp address with the same results.
4. Confirmed that I can connect to my Exchange server using telnet

As I said, email from the main admin page (Central Administration) seems to work fine, but it doesn't work when setting up users on my Team Site. Exchange server works fine for our corporate email--it just doesn't seem to work with the Sharepoint team site.

I've run across advice to check Exchange logs, but have no idea where to start.

Any ideas?

Thanks,
John


0
Comment
Question by:jscifers
  • 2
  • 2
4 Comments
 
LVL 3

Assisted Solution

by:mosslive
mosslive earned 500 total points
ID: 34882562
Hi,

did you try to send an email using telnet?
If not, try to send an email using telnet (http://exchange.mvps.org/smtp_frames.htm) to one of the users causing the error message. This might give you a starting point.

Are your users all located within the same Exchange?
(Exchange will only be able to sen emails to users of its own organization, due to relaying restrictions)

Which users are configured on your AppPools (Central Admin AppPool and WebApp AppPool)?
(maybe the WebApp AppPool user cannot send mails)

/Daniel
0
 

Author Comment

by:jscifers
ID: 34882813
Thanks for the feedback!

Sending email to an external user using telnet produces an "Unable to Relay 5.7.1" error when I use the "rcpt to: <external address>" command with any external email address. Sending mail via telnet works fine when using an internal address (e.g. "name@mydomain.com").

Yes, all users are located in the same Exchange server.

Regarding App pools, I do have a Security warning ("Accounts used by application pools or service identities are in the local machine Administrators group."), but I'm not sure whether this is related. Browsing to http://mydomain:45400/_admin/FarmCredentialManagement.aspx, I have the following service accounts set up:

Farm Account: sadmin
Windows Service - Claims to Windows Token Service: Local System
Windows Service - MS SharePoint Foundation Sandboxed Code Service: sadmin
Windows Service - SharePoint Foundation Search: jscifers
[All] Web Application Pools (41782, 80, site1, site 2): jscifers
Service Application Pool - SecurityTokenServiceApplicationPool: sadmin
Service Application Pool - SharePoint Web Services Default: sadmin
Service Application Pool - SharePoint Web Services System: sadmin

jscifers is my account and has Admin priviledges. sadmin was an admin account i set up for Sharepoint.

Any thoughts?
0
 
LVL 3

Accepted Solution

by:
mosslive earned 500 total points
ID: 34882865
Hi,

regarding the relay you should check this blog post by the exchange team:
http://msexchangeteam.com/archive/2006/12/28/432013.aspx

SharePoint needs relay permissions to send mails to users outside your organization.

Despite the fact that ou shouldn't use your user accountas service account ;-) the configuration seems ok (assuming you were able to do the telnet check with that user as well).

Do you get th error message even when adding an internal user?

/Daniel
0
 

Author Comment

by:jscifers
ID: 34882941
Ah, fixing the relay issue solved the problem!

After running the following command, the problem went away:

Get-ReceiveConnector "CRM Application" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"

THANKS!

John
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now