Another commonly asked question is about message size limits and the inability to send messages that are apparently within the maximum sizes configured. Let's take a look at the message size settings in different places.
Organizational limits: These apply to all Exchange servers in the Organization. You can set these using the Set-TransportConfig command from the Exchange shell:Set-TransportConfig -MaxReceiveSize 40MB -MaxSendSize 40MB

In SP1, you can also set it using the Exchange console by going to Organization Configuration | Hub Transport | Global Settings tab | Transport Settings | properties.

Receive Connector limit: Unlike Exchange SMTP Virtual Servers in Exchange Server 2003/2000, Exchange 2007's Receive Connectors are only used to receive messages. The maximum message size limit can be different on different Receive Connectors on a Hub Transport or Edge Transport server. To modify the maximum message size on a Receive Connector using the Exchange console, select Server Configuration | Hub Transport | select a HT server | Receive Connectors -> select a connector | Properties | General tab.
To set ReceiveConnector limit using the shell:
Set-ReceiveConnector "CONNECTOR NAME" -MaxMessageSize 40Mb
Send Connector limit: Send Connectors are used for sending outbound messages to the internet or particular address spaces (domains). Edge Transport servers also have a Send Connector to send inbound messages to Hub Transport servers in an AD Site. To modify the maximum message size on Send Connectors, select Organization Configuration | Hub Transport | Send Connectors -> select connector | Properties | General tab.
To set SendConnector limit using the shell:
Set-SendConnector "CONNECTOR NAME" -MaxMessageSize 40Mb
Mailbox limit: Individual recipients like mailboxes can have their own limits to bypass the Organizational limits. To set these using the Exchange console: Recipients | Mailbox -> select mailbox | properties | Mail Flow Settings tab | Message Size Restrictions.
Do individual size limits bypass the Organization size limit?
Setting higher message size limits on an Exchange recipient bypasses the maximum message sizes in the Exchange Organization configuration, albeit only for internal messages, not for messages sent to or received from unauthenticated sources.
If the sender's size limits allow sending a large message, but the recipient's limits do not allow receiving a message of that size, you get a NDR with the following text (note the enhanced status code informing you exactly why the message was rejected):
#550 5.2.3 RESOLVER.RST.RecipSizeLimit; message too large for this recipient ##
If the recipient is allowed to receive a large message, but the sender isn't allowed to send a message of that size, you get the following NDR:
#550 5.2.3 RESOLVER.RST.SendSizeLimit; message too large for this sender ##
To set these using the Exchange shell:
Set-Mailbox "Joe Adams" -MaxSendSize 20Mb -MaxReceiveSize 20Mb
Distribution Groups and Contacts (MailContacts) only have maximum receive size in the Exchange console, but both MaxReceiveSize and MaxSendSize properties can be set for them using the Exchange shell.
Global Settings: Besides the above, another set of message size limits can impact Exchange Server 2007 recipients, but it's often overlooked when troubleshooting. This is the one in Exchange Server 2003 Global Settings | Message Delivery -> Properties.
- If you have these configured to a specific value before you upgrade the Organization to Exchange Server 2007, these are left untouched.
- If you have these set to "No Limit" before the Exchange Server 2007 upgrade, these are reset to the Exchange Server 2007 defaults.
- In case Exchange Server 2007's Organization settings (the ones you can set using Set-TransportConfig) conflict with these legacy Global Settings, the lower of the two sizes are used.
The problem is, these are neither visible in the EMC, nor using any of the Exchange shell commands.
If you still have an Exchange Server 2003 server in the Organization, you can use ESM to modify these limits. Alternatively, you can use ADSIEdit to browse to the Configuration container | Services | Microsoft Exchange | YourOrgName | Global Settings | Message Delivery -> Properties, and modify the following attributes as required:
1. delivContentLength -> corresponds to MaxReceiveSize parameter in Set-TransportConfig command.
2. SubmissionContentLength -> corresponds to MaxSendSize parameter in Set-TransportConfig command.
Note: The maximum value for both of the above is 2097151 KB, slightly under 2 Gb.
3. msExchRecipLimit -> corresponds to MaxRecipientEnvelopeLimit parameter in Set-TransportConfig command.
Set these to be the same as the equivalent Organization settings in Exchange Server 2007.

Exchange Server 2007 SP1 makes managing Global Settings easier.
If Global Settings have numeric values (i.e. aren't set to "No Limit"), using Set-TransportConfig to change maxReceiveSize, maxSendSize or maxRecipientEnvelopeLimit also changes the corresponding Global Settings.
Active Directory SiteLink limit: In Exchange Server 2007 SP1, you can also set maximum message size limit on AD Site Links. Exchange Server 2007 uses the AD Site topology to determine the least cost paths. If the message size to be delivered to a remote AD Site exceeds the limit on the AD Site Link, message delivery will fail. By default, the MaxMessageSize on AD Site Links is set to unlimited. This can be changed using the following command:Set-ADSiteLink "SITE LINK NAME" -MaxMessageSize 20Mb
Routing Group Connector Limit: Routing Group Connectors are used in co-existence scenarios to transfer messages between Exchange Server 2003/2000 Routing Groups and the Exchange Server 2007 Routing Group (yes, there is one under the hood.. ). Messages exchanged between these Routing Groups should be below the message size limits of their respective RGCs. The default is set to unlimited. To set the MaxMessageSize on a Routing Group Connector:Set-RoutingGroupConnector "CONNECTOR NAME" -MaxMessageSize 20Mb
Content conversion and message size limits
One source of confusion in previous versions of Exchange Server, as far as the message size limits are concerned, is that created by the content conversion process. Content conversion happens when Exchange converts an internet/MIME message into MAPI/Exchange format, and vice versa. Content conversion generally increases the message size - roughly by 30%. If you set a maximum message size of 10Mb., and wonder why a 9 Mb. attachment didn't make it through, consider the content conversion overhead, as also message headers (which are computed along with the DATA portion of the message to calculate the message size), and any actions taken by Transport Rules.How does Exchange Server 2007 handle such messages? When a message enters the Exchange Server 2007 Org, it gets stamped with an X-MS-Exchange-Organization-OriginalSize header, which indicates the original size of the message before conversion. When considering message size limits, if the message has since ballooned to a larger size due to content conversion, added headers, etc. - the lower of the original message size and the current (converted) message size is considered, eliminating some of the confusion seen with message sizes in previous versions.
Using the Exchange shell to track failed message delivery
You can use the Exchange shell to track messages that could not be delivered because of message size issues. The RecipientStatus field in Message Tracking logs is used to store the SMTP response and enhanced status codes. The Message Tracking EventID we're looking for is FAIL. (Read previous post on message tracking: "Exchange Server 2007: Message Tracking from the command line")To track messages that failed because of recipient's MaxReceiveSize:
Get-MessageTrackingLog -EventID FAIL | where {$_.RecipientStatus -like "*RecipSizeLimit*"}
To track messages that failed because of the sender's MaxSendSize:Get-MessageTrackingLog -EventID FAIL | where {$_.RecipientStatus -like "*SendSizeLimit*"}
Labels: Administration, Exchange Server 2007, Exchange Shell, Mailbox

Exchangepedia Blog is read by visitors from all 50 US States and 150 countries world-wide


43 Comments:
I love the bubbles... what app did you do this in??.. very nice
Thanks - a combination of SnagIt and Adobe FireWorks.
Is there a way to deliver a message that was not delivered due to size limit restrictions?
The messages that aren't delivered aren't held in some queue - they're NDRed.
Nice! You stated that the settings on the mailbox will only override the internal receive message size restrictions. Is there a way to allow a user, or group of users to send messages over a send connector (Internet) higher than the size limits?
We upgraded from Exchange 2000 to 2007 and I am having trouble with the attachment limit. In item 5 you say "Alternatively, you can use ADSIEdit to browse to the" Can you explain what that is. Thanks
is there anyway to amend the 5.3.2 text in the non-delivery, I have tried using set-systemmessage etc.. but this does not appear to work.
It was stated that you can increase the limits for recipients but this will only override for internal email and not external. Is there a way to override the external limits? I need to be able to do this for certain users.
Haven't been able to respond to all the comments due to time constraints.
For the preceeding comment - fairly certain that's not possible. Changes to message size limits for individual recipeints can be made because they reside in AD. External recipients/senders do not, so you can't modify individual limits for them (there's noting to modify).
Internet email is submitted without authentication.
I wonder if you have any idea how I can get around this one? I have multiple send connectors with different message size restrictions. The reason is that we have a number of different mail systems internally which mail needs to be directed to. The problem is that if a message is to large for the send connector configured with the same address space as the message it uses the internet send connector (with address space *) which has a larger message size restriction.
All in the same place.
Very nice.
John Weber
Hello There,
I wonder if it is possible to allow certain AD Users (or groups) the ability to override the Mailbox receive limits for users that may have a full mailbox.
We are in a School, and kids never empty their mailboxes and Teachers are continually telling us that they are getting Mailbox Full messages. Is it possible to allow the Teachers to send but it reject anything else if mailbox is too large?
Thanks
Chris
Why would Microsoft not allow a GLOBAL limit and allow user specific with unlimited per user? Example, 5 MB for all users but 50 MB for all management.
Hi, Picture this:
Organizational Limit: 5MB
All Send Connector: 10MB
All receive Connectors: 10MB
My Mailbox Limit: 10MB (overwrites organizational limit right?)
Will i be able to send/receive 9MB emails?
Possibly in the wrong post, but has anyone heard of messages not being delivered due to be too small?
We have a situation on Exchange 2007, where the message tracking shows the message as delivered, but the message does not show up in the mailbox. We know that it isn;t a client issue as it is not there on OWA either.
If a mail is sent with an attachment it gets through.
Any ideas?
Thanks
@Rob: There's nothing (out-of-the-box) that would prevent a small message from being delivered. If Message Tracking says it's been delivered to a mailbox, that's where it should be.
Next, you start looking at what may happen after delivery. For instance, if Outlook junk-mail is turned on, turn that off. Take a look at Inbox/Outlook rules— the mailbox may have a rule to move or delete items. Check other folders, including Deleted Items.
Thanks Bharat - but we are pretty sure (i.e. we have checked) that it is not the client - so, there are no rules, it is not going to the junk mail or anything like that. It also doesn't show up on OWA.
If it was being treated as junk it would end up in the same folder - but if we send with an attachment it comes through into the inbox.
All in all it is very perculair.
Rob
@rob - You need to take pipeline tracing to check what is actually happening behind the show.
How to Enable Pipeline Tracing
http://technet.microsoft.com/en-us/library/bb125018.aspx
Regards,
-Arun
Why when i set maximum size to new size, exchange still keep older maximum size when i try sent attachment? any body can help me to set automatic update on exchange 2007?
thanks.
Thanks for the info and a great site!
Is it necessary to restart any services after making changes to the message sizes?
I changed all mine from 10 to 15mb and still can't send a 12mb file.
These is a way to set management size vs user size limits. It takes some clever use of Routing Groups. MGR's are part of one with big limits, and Users are members of another.
Good job guys! Interesting article, adding it to my favourites!
Hi All
We have Restricted Maximum Recipients to 30 for all DataBases very long back by using cmdlet through EMS, but when we create new user accounts it’s not going to be applied that setting , again we have to set manually and sometimes we are forgetting & POP3 needs to be disabled automatically
Is there any cmdlet, transport rule or e-mail policy which can automatically apply that setting (Maximum recipient to 30 & POP3 should be Disabled simultaneously) for all new users as well as for all existing users.
I mean the policy should be applied forever.
Appreciated your help.
Thanks in Advanced.
Regards,
Amjad
Hi,
Can we shedule big attachment mail.
I have request to allow 20mb attachment but they should all be deleiver in late in night.
Thanks
Thanks! I kept looking at Microsoft's wordy 10 page responses and you just cut to the point! I would never be able to deal with Microsoft's products but for third party people like you!
@Anonymous from May 19: No, Connectors cannot be scheduled.
@Amjad (Anonymous) from May 18: Schedule a powershell command/script to run using Windows Scheduler. Details in Exchange 2007 docs.
So MS has dropped mail scheduling feature in exch2k7, which it had in Exch2k3.
Thanks
Asif
hii all,
I have made changes in the Global setting of My Exchange server.
Maximum sending Size to 4 MB and Maximum receipient is 20.
I want to know will it effect the Incoming also.
In my case its effecting if a sender sends mail from outside as in from gmail or yahoo the mail bounces if its more than 20 recipient or 4 MB. Why Incoming is getting effected.
thank you! That looks like a great resource
Really well writing and informative article. Bookmarked for future reference
This site has good information. Thanks
thanks for the tips,very useful article!
Thanks for the help
Damn, this is great thanks. After spending hours with docs from MS, it took 10 minutes with yr advice to sort out my issue.
THANK YOU.
This article talks about message SIZE, but is there any limit (or way of setting one) on the NUMBER of attachments, as long as the total size is within the limit? One of my users with outlook 2007 is hitting a 'too many attachments' message, after upgrading from outlook 2003; 14 attachments was no trouble before.
@hesaster_amy: Can you provide more details?
@David: You can configure the type of attachments allowed or blocked— see Customize attachment settings in Outlook 2007. There's no setting for number of attachments afaik. I just sent a message with 50 attachments. Is this an Outlook error or an NDR?
Thanks ! Looks very, very interesting."Bookmarked it for reading later.
Nice article very useful!
A question reguardind to point #4 :
I have 1500 users, how to set all users at 10Mb and only 3 users at 20Mb for internal AND external ?
thanks
Very usefull article. Save time. Correct and clear instructions. Thanks a lot.
Rock on dude- very nice and to the point. Maybe Microsoft should hire you! :-)
Post a Comment
Links to this post:
Create a Link
<< Home