Exchangemaster GmbH company logo

Exchangemaster GmbH - A Swiss IT Consultancy
Services
References
Partners
Contact
Getting Started
FAQs
Presentations
Articles
Community
Search
Popular
Tell-a-Friend
Follow Me

Follow exchangemaster on Twitter

Who's Online
We have 124 guests online
Syndicate
FAQ 000123 - iPhone iOS7 error: The message was rejected by the server because it was too large PDF Print E-mail
User Rating: / 57
PoorBest 
Written by Dejan Foro   
Nov 12, 2013 at 10:14 AM

This article applies to:

iPhone with iOS 7.0.1, iOS 7.0.2, iOS 7.0.3

Exchange 2010 SP3

Windows Server 2008 R2

 

PROBLEM

After upgrading to iOS7 iPhone users are not able to send messages larger than 48k. The following error is reported:


Cannot send mail. The message was rejected by the server because it is to large.

 

 This happens although the message limit on the Exchange server is significantly higher.

 

WORKAROUND

This limit comes from the web server (IIS)  on the Exchange Client Access Server (CAS) and is set by default to 48 k.

This can be increased on the Exchange 2010 CAS servers by changing the UploadReadAheadSize parameter in the IIS metabase. 

 

1) On the CAS server open the Command Promt with Run as adminstrator and change to the IIS directory.

This is typically C:\Windows\System32\inetsrv

 

2) Create a backup of the metabase

appcmd.exe add backup backupname

 

3) Set the UploadReadAheadSize value on the server level

The value is set in bytes so if you want for example to set a value to 20 MB you would have to multiply 20x1024x1024 =20971520

appcmd.exe set config -section:system.webserver/serverruntime /UploadReadAheadSize: "20971520" /commit:apphost

 

4) Set the UploadReadAheadSize vaule on the Default Web Site

appcmd.exe set config "Default Web Site" -section:system.webserver/serverruntime /UploadReadAheadSize: "20971520" /commit:apphost

 

5) restart IIS

iisreset.exe

 

 

CONTROL PROCEDURE

 To check if the value actually applied after the IIS restart via command line,  you can use the following

 

 Check if the vaule is applied on the server level

appcmd list config -section:system.webserver/serverruntime

 

Check if the value is applied on the Default Web Site level

appcmd list config "Default Web Site" -section:system.webserver/serverruntime

 

The value can also be checked/set via IIS Administrative Tool. 

Start / Administrative Tools / Internet Information Services (IIS) Manager. Select the web server or site you want to check and then on the in the Details pane under Management select Configuration Editor .

In the editor browse to the System.Webserver/ServerRuntime section. The parameter UploadReadAheadSize is listed at the bottom.

 

 

REVERT PROCEDURE

In case you want to reset the vaules back this can be done by restoring the metabase backup, followed by an IIS restart

 

appcmd restore backup backupame /stop:true 

iisreset

 

 

 

Last Updated ( Nov 12, 2013 at 04:01 AM )
<Previous   Next>