Exchange : ‘Message Exceeded The Maximum Size Limit’

KB ID 0001368

Problem

When attempting to send an email from Outlook via Exchange, (In this case Exchange 2106). You see a message like the one below;

The following files weren't attached

The following files weren’t attached because adding them would cause the message to exceed the maximum size limit of {Size} MB: {File-Name}

Solution

There are a few places this can be set, lets deal with the most common ones first;

TransportConfig: This has a maximum send and a maximum receive size, to view yours use the following command;

Get-TransportConfig | fl MaxSendSize, MaxReceiveSize

Exchange Transport Message Size Limits

If one of them is tripping you up, you can change the sizes with the following command;

Set-TransportConfig -MaxSendSize 100MB -MaxReceiveSize 100MB

Change Exchange Transport Message Size Limits

SendConnector: This has a maximum message size, to view yours use the following command;

Get-SendConnector | ft Name, MaxMessageSize

Change Send Connector Message Size Limits

To change the limit, use the following command;

Set-SendConnector “{connector-name}” -MaxMessageSize 100MB

ReceiveConnector: This has a maximum message size, to view yours, use the following command;

Get-ReceiveConnector | ft Name, MaxMessageSize

Change Send Connector Message Size Limits

You will have many, the one you probably want to change is called “Default Frontend {Server-name}” To change the limit, use the following command;

Set-ReceiveConnector “{connector-name}” -MaxMessageSize 100MB

I’ve Done All This And It Still Wont Work? 

Some times the settings above don’t take effect until all the AppPools in IIS (on the CAS servers) have been restarted, an IISRESET command should solve the problem, (or a reboot if you can handle the downtime.) However even then in some cases you will continue to see the same error message. There are three places that it can still be misconfigured.

OWA Config File

Open the File located at;

%ExchangeInstallPath%ClientAccess\owa\web.config

Locate and set the maxRequestLength (NOTE: the value is in Kilobits)

OWA config Message Limits

EWS Config File

Open the File located at;

%ExchangeInstallPath%ClientAccess\exchweb\ews\web.config

Locate and set the maxRequestLength (NOTE: the value is in Kilobits)

EWS config Message Limits

ActiveSync (Sync)  Config File

Open the File located at;

%ExchangeInstallPath%ClientAccess\Sync\web.config

Locate and set the maxRequestLength (NOTE: the value is in Kilobits)

Active Sync config Message Limits

Having changes these values, perform an IISRESET;

IISRESET

Repeat for any additional CAS Servers.

Related Articles, References, Credits, or External Links

Message Size Limits on Exchange 2003

Exchange – Message Not Sent ‘Because there are too many recipients’

Author: PeteLong

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *