VISIT THE NEW JOE SHAREPOINT BLOG AT WWW.JOESHAREPOINT.COM!

Tuesday, May 8, 2007

MOSS 2007 SMTP and POP3

Recently I learned that document libraries can be enabled to receive emails and attachments. Each document library (and some types of lists) can have it's own email address, and within that library rules can be set so as to route the emails and attachments to different folders based on subject line or sender. The mind reels at he possibilities! So, I set out to see it for myself. I came across this excellent whitepaper here, outlining the configuration steps on the server and site.

Now, if you're like me, your environment is not a dedicated SharePoint server. Amongst the myriad of applications that are running, my server has been configured as a SMTP and POP3 server, which will cause conflict when it comes to enabling your SharePoint sites to receive email. The conflict occurs when the Windows SharePoint Services Timer service attempts to query the \mailroot\drop folder. There will never be an email there because the POP3 service grabs the .eml files as soon as they arrive. Attempting to copy these files back into the \mailroot\drop directory from their respective mailbox folders OR pointing your incoming email settings to one of the mailboxes instead of the \mailroot\drop folder, results in the following application event error to be written to your event log:

"A critical error occurred while processing the incoming e-mail file E:\Inetpub\mailroot\drop\P3_xxxxxxxxxxxxx. The error was: Bad senders or recipients.."


The reason for this is that the Document Library Email domain and the POP3 domain are the same, causing a conflict over who gets control of the messages.

Solution: Uninstall the POP3 service and add the Document Library Email domain to the SMTP server's domains, OR create a new, differently named domain in the SMTP server's domain, and set that in your Incoming Email configurations.

More Information:
Plan Incoming e-mail (Office SharePoint Server)

Peter's World - MOSS 2007 WSS V3 Incoming Email with Exchange

Various Other Issues with Configuring Incoming Email

4 comments:

Greger Hagström said...

Joe, what can I say.
After struggling with this the last couple of hours and finally seing the document appear in the listing Im happier than a cat in a fishpond.

Thanxs!

Anonymous said...

Joe,
Thanks a ton for putting this up on your blog.

I'm trying to configure my sharepoint lis to receive my emails from my gmail/yahoo account. Basically any 3rd party pop3 account. Is that possible. I can't seem to get it right.

Thanks again.

Jabal

Joe Baldwin of Tushaus Computer Services said...

Hi Jabal,
You need to go into your SMTP settings and under the "Access" tab click on the "Relay" button. Select the "All except the list below" radio button and delete any computers from the list. Make sure that the checkbox by "Allow all computers which successfully authenticate to.." is checked. It's a good idea to check that you are in compliance with any network policies/restrictions that might be in place before you do this! Stop and Start the SMTP server and you should be good to go.

Anonymous said...

Can anyone recommend the top performing Software Deployment system for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central remote software access
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!