Issue
Large Items are not received/ingested, because of size limits.
Solution
Sometimes it is necessary to increase the item size limits of Exchange to be able to receive/ingest larger items.
Increase the Exchange message size limits:
1. Open the Exchange Management Shell and enter following commands to get the current message size limits:

Get-Transportconfig | ft MaxSendSize, MaxReceiveSize
Get-Receiveconnector | ft Name, MaxMessageSize
Get-Sendconnector | ft Name, MaxMessageSize
Get-Mailbox Administrator |ft Name, MaxSendSize, MaxReceiveSize

2. Increase message size limits:

Get-TransportConfig | Set-TransportConfig -MaxSendSize XXMB -MaxReceiveSize XXMB
Get-ReceiveConnector | Set-ReceiveConnector -MaxMessageSize XXMB
Get-SendConnector | Set-SendConnector -MaxMessageSize XXMB
Get-Mailbox | Set-Mailbox -MaxSendSize XXMB -MaxReceiveSize XXMB

 
Increase IIS limits to allow accepting payloads:
1.Maximum accepted request and content length:

  1. Navigate to C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\ews
  2. Open the file Web.Config in a text editor
  3. Find the XML tag starting with maxRequestLength=
  4. Change the existing value to maxRequestLength=”Length_in_Kilobytes”
  5. Save the file

2. Maximum received message size:

  1. Navigate to C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\ews
  2. Open the file Web.Config in a text editor
  3. Find all XML tags starting with maxReceivedMessageSize=
  4. Change existing values to maxReceivedMessageSize=”Length_in_bytes”  (Be aware that you must not change the default values of maxReceivedMessageSize for UMLegacyMessageEncoderSoap11Element bindings.)
  5. Save the file
  6. Open a Command Prompt
  7. Type: cd %windir%\system32\inetsrv
  8. Type to modify the configuration to allow injection of large attachments, run the following script on each CAS server:
    appcmd set config “Default Web Site/ews” -section:requestFiltering -requestLimits.maxAllowedContentLength:<content_Length_In_Bytes>
  9. Type the following script to update the attachment limit on all mailbox servers:
    appcmd set config “Exchange Back End/ews” -section:requestFiltering -requestLimits.maxAllowedContentLenght:<content_Length_In_Bytes>
  10. Type to activate the configuration: iisreset

You can find more about the settings of Message Size Limits for Exchange Web Services (EWS) for Exchange 2010 in Microsoft technote.
You can find more about Exchange 2010 Message size limits in Microsoft technote.
You can find more about Exchange 2013 Message size limits in Microsoft technote.
You can find more about Exchange 2016 Message size limits in Microsoft technote.
You can find more about Exchange 2016 and how to configure client-specific message size limits in Microsoft technote.

Print Friendly, PDF & Email