I have several email-enabled document libraries on a SharePoint 2010 site. Per our security policy, they are set to "Accept e-mail messages based on document library permissions." Most emails successfully arrive in the library. About 40% of the emails fail. I have sent the same 5 emails to one of the libraries multiple times, each time anywhere between 1 to 3 of the emails failed to arrive and they were almost always different ones that failed. So there doesn't seem to be a pattern. It doesn't seem to matter if they have attachments, size of the attachments, or if they were received in a batch. There are just those that randomly fail.
The SharePoint log error reads as follows:
An error occurred while processing the incoming e-mail file c:\inetpub\mailroot\drop\8ebe650201d06012000000be.eml. The error was: Access denied. You do not have permission to perform this action or access this resource
Which is quite bizarre because most emails arrive successfully.
If I change the security settings to allow emails from any user, then I receive all the emails. unfortunately this is not an option. When I allow any user to email into the library, the Created By field reads as "System Account" for some and my username for others. Which tells me it doesn't recognize me as the sender for some. The others have my username.
The problem seems to be in the x-sender of the message. A successful email will have the following x-sender:
A failed email will have the following: x-sender: prvs=3859DCC1A7firstname.lastname@example.org
What I cant figure out is why Sharepoint (or outlook?) is prepending an ID to my email address. Has anyone seen this before?