• 1. London, UK
  • 2. New York, NY
  • 3. Sydney, Australia
  • 4. Melbourne, Australia
  • 5. Paris, France
  • 6. Bangalore, India
  • 7. Amsterdam, Netherlands
  • 8. San Francisco, CA
  • 9. Hong Kong
  • 10. Houston, TX

Monday, September 10, 2007

 

Exchange Server 2007: Setting Message Size Limits

Posted by Bharat Suneja at 8:08 AM
In a previous post, we looked at how the maximum recipients per message settings are treated differently by Exchange Server 2007 and Exchange Server 2003/2000 when sending to Distribution Groups (read previous post "Distribution Groups and maximum recipients per message").

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.

Exchange Server 2007 | Transport Settings

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.

Troubleshooting Sender and Recipient Size Limits: Consider the sender's MaxSendSize and the internal recipient's MaxReceiveSize when troubleshooting message size issues.

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: , , ,

43 Comments:

September 10, 2007 9:50 PM
Blogger The Mantles said...

I love the bubbles... what app did you do this in??.. very nice

 
September 10, 2007 10:19 PM
Blogger Bharat Suneja said...

Thanks - a combination of SnagIt and Adobe FireWorks.

 
September 14, 2007 7:45 AM
Anonymous Blackmouth said...

Is there a way to deliver a message that was not delivered due to size limit restrictions?

 
September 14, 2007 8:08 AM
Blogger Bharat Suneja said...

The messages that aren't delivered aren't held in some queue - they're NDRed.

 
October 10, 2007 9:06 PM
Anonymous Anonymous said...

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?

 
November 29, 2007 9:02 AM
Anonymous Anonymous said...

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

 
January 30, 2008 7:48 AM
Anonymous Anonymous said...

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.

 
March 3, 2008 9:42 AM
Anonymous Anonymous said...

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.

 
March 3, 2008 9:55 AM
Blogger Bharat Suneja said...

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.

 
March 4, 2008 1:32 PM
Anonymous Anonymous said...

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.

 
March 17, 2008 12:27 PM
Blogger tsoorad said...

All in the same place.
Very nice.
John Weber

 
April 9, 2008 7:41 PM
Anonymous Anonymous said...

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

 
June 19, 2008 11:34 AM
Anonymous Anonymous said...

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.

 
June 30, 2008 9:36 PM
Anonymous Anonymous said...

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?

 
July 7, 2008 3:15 PM
Blogger Rob said...

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

 
July 7, 2008 3:26 PM
Blogger Bharat Suneja said...

@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.

 
July 8, 2008 2:22 AM
Blogger Rob said...

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

 
August 19, 2008 1:27 AM
Blogger Anonymous said...

@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

 
September 15, 2008 10:15 PM
Blogger Pakej Promosi Video Dan Gambar said...

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.

 
February 6, 2009 10:36 AM
Blogger Parker said...

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.

 
February 19, 2009 9:07 PM
Anonymous Anonymous said...

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.

 
May 12, 2009 3:58 PM
Anonymous תיקון מחשבים said...

Good job guys! Interesting article, adding it to my favourites!

 
May 18, 2009 10:44 AM
Anonymous Anonymous said...

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

 
May 19, 2009 11:42 PM
Anonymous Anonymous said...

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

 
June 3, 2009 1:25 PM
Anonymous Anonymous said...

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!

 
June 3, 2009 1:30 PM
Blogger Bharat Suneja said...

@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.

 
June 18, 2009 4:28 AM
Anonymous Anonymous said...

So MS has dropped mail scheduling feature in exch2k7, which it had in Exch2k3.

Thanks
Asif

 
June 22, 2009 4:09 AM
Anonymous Anonymous said...

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.

 
June 22, 2009 10:08 PM
Anonymous web design India said...

thank you! That looks like a great resource

 
July 18, 2009 11:07 PM
Anonymous תיקון מחשבים said...

Really well writing and informative article. Bookmarked for future reference

 
August 15, 2009 3:23 PM
Anonymous tapestries said...

This site has good information. Thanks

 
September 19, 2009 5:09 PM
Anonymous exchangepedia.com/blog/2007/09/exchange-server-2007-setting-messa טכנאי מחשבים said...

thanks for the tips,very useful article!

 
October 5, 2009 7:48 AM
Anonymous Exchange server said...

Thanks for the help

 
October 12, 2009 11:22 PM
Anonymous Deon van der Merwe said...

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.

 
December 1, 2009 7:04 AM
Blogger David said...

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.

 
December 1, 2009 7:22 AM
Blogger Bharat Suneja said...

@hesaster_amy: Can you provide more details?

 
December 1, 2009 8:36 AM
Blogger Bharat Suneja said...

@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?

 
December 6, 2009 10:28 AM
Anonymous web design company india said...

Thanks ! Looks very, very interesting."Bookmarked it for reading later.

 
February 15, 2010 2:38 AM
Anonymous Anonymous said...

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

 
February 24, 2010 8:15 AM
Anonymous Damith Abeykoon said...

Very usefull article. Save time. Correct and clear instructions. Thanks a lot.

 
March 2, 2010 1:20 PM
Anonymous Jim Ponder said...

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