reg88.com

fine...I'll blog too

Exchange Server Attachment Limitation Fix

Problem
On a new Exchange installation Mail Clients might fail to send large attachments. This is doe to the default values set by OWA, IMAP, EWS.

Fix
1. Run the following commands from c:windowssystem32inetsrv

1
2
3
appcmd set config Default Web Site/ews -section:requestFiltering -requestLimits.maxAllowedContentLength:30000000
appcmd set config Default Web Site/owa -section:requestFiltering -requestLimits.maxAllowedContentLength:30000000
appcmd set config Default Web Site/Microsoft-Server-Activesync -section:requestFiltering -requestLimits.maxAllowedContentLength:30000000
  1. Edit C:Program FilesMicrosoftExchange ServerV14ClientAccessexchwebewsweb.config and Modify
1
2
3
<httpRuntime maxRequestLength=2097151 />
to
<httpRuntime executionTimeout=1200 maxRequestLength=30720 />
  1. Edit C:Program FilesMicrosoftExchange ServerV14ClientAccessexchwebewsweb.config and Modify
1
2
3
4
5
<EWSMessageEncoderSoap11Element />
<httpsTransport maxReceivedMessageSize=13600000 authenticationScheme=Anonymous maxBufferSize=81920 transferMode=Streamed>
to
<EWSMessageEncoderSoap11Element />
<httpsTransport maxReceivedMessageSize=31457280 authenticationScheme=Anonymous maxBufferSize=81920 transferMode=Streamed>
  1. Edit C:Program FilesMicrosoftExchange ServerV14ClientAccessOwaweb.config and Modify
1
2
3
4
5
6
7
</system.webServer>
<system.web>
<httpRuntime maxRequestLength=30000 />
to
</system.webServer>
<system.web>
<httpRuntime maxRequestLength=30000 />