Exchange 2010SP  IPhone/Cannot Send Mail

tomfontanilla
tomfontanilla used Ask the Experts™
on
Cannot Send Mail. The message was rejected by the server because it is too large. I have few Iphone users that keep getting this error.  I checked the E2K10 DB and user mailbox for any quota limitation and all is good. Please help!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Is it your server doing the rejection or a 3rd party server?

Have you modified the default send/receive limits of 10mb globally?

Alan

Author

Commented:
I tried that, no luck!

C:\Windows\System32\inetsrv\appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /uploadReadAheadSize:"10485760" /commit:apphost
MurfurFull Stack Developer

Commented:
What is the server quota limitation and how big is the attachment?
What app are the iPhone users using to send the message (I could assume Mail but safer to ask!)
What is the exact error message?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
"Cannot Send Mail. The message was rejected by the server because it is too large."
Above is the exact error.
iPhone users are using Active Sync.
The email is a thread of conversation, replying with attachment  and without. With attachment, it is less done 3mbs.

Author

Commented:
On hubs 40mb on the mailboxes DB. No limits.
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Can you please post a copy of the error message.

Thanks

Alan
MurfurFull Stack Developer

Commented:
I wear several email hats so have several accounts on my iPhone and I have encountered a similar problem, albeit intermittently and now I think about it, when I've been "roaming". So it has been interesting to dig into this as a couple of the email accounts are Exchange & now I know what to pass on to my IT bods. Hurrah!

Anyway, the digging reveals a possible cause and solution:

Apparently if you use certificate based authentication and you attempt send an attachment you can get stuck in a negative reality inversion! (see The Young Ones, S02E05 "Sick", 1984)

But to paraphrase a few sources (see below) as a summary, the server receives enough data to process the headers but does not receive the entire request. IIS attempts to answer the request with client certificates but fails to renegotiate the connection because the client is still waiting to send the remaining data from the initial POST.

There is a setting in IIS called uploadReadAheadSize that has a default of 48k and if increased could resolve this. Using 10Mb as below effectively sets your limit at 10Mb:

C:\Windows\System32\inetsrv\appcmd.exe set config -section:system.webServer/serverRuntime /uploadReadAheadSize:"10485760" /commit:apphost

C:\Windows\System32\inetsrv\appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /uploadReadAheadSize:"10485760" /commit:apphost

Open in new window

After this restart the IISAdmin service to load the changed setting.

Give it a whirl & all being well, head home for tea and medals!

Let us know how you get on, would be good to know if this works for you & ditto if anything develops with my IT people.

Sources:
https://discussions.apple.com/thread/5337946

http://technet.microsoft.com/en-us/library/cc737382%28WS.10%29.aspx

http://social.technet.microsoft.com/Forums/exchange/en-US/52f58b47-b95e-4f44-bb4e-6bd8b1b4eb94/iphone-sending-attachment-problems

Author

Commented:
Alan,
This the exact error.
"Cannot Send Mail. The message was rejected by the server because it is too large."

Author

Commented:
Murfur,

See my previous comment. I did exactly what you said, prior to posting here in expert exchange. The bottom that didnt help.
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Is it your server rejecting the message for being too large or the receiving server?

Alan
MurfurFull Stack Developer

Commented:
Probably a silly question Tom, but did you apply BOTH update commands?

Author

Commented:
Yes.

Author

Commented:
Alan,
The answer to your question is yes.
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Could you please re-read my question and then answer again.

Many thanks

Alan

Author

Commented:
Our is server rejecting the message for being too large. Below is the exact error message.

"Cannot Send Mail. The message was rejected by the server because it is too large."
Co-Owner
Top Expert 2011
Commented:
Please check your web.config file (as per the link below) and make sure the size limit is set to a more suitable size.

http://msexchange.me/2013/07/26/exchange-active-sync-message-size-limit/

Alan

Author

Commented:
Alan,
That is similar fixed to my earlier post. But i will give a shot anyway.
Alan HardistyCo-Owner
Top Expert 2011

Commented:
It looks very different to me and optimistically should solve the problem, but only time will tell.

Alan

Author

Commented:
Alan,
I believe you got this on the nose. I haven't heard any issues, and all my testing were successful. Great find. Thank you.
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Excellent news - long may it stay that way.

Thanks for the points.

Alan

Commented:
Did you have to reboot the exchange server after this modification? please advise,

Thank you,
Rafael

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial