Configure Maximum Message Size in Outlook Web App
Applies to: Exchange Server 2010
Topic Last Modified: 2011-03-19
You can edit the Web.config file on a Client Access server to enable large messages to be sent using Outlook Web App. Outlook Web App is an application that uses ASP.NET and is affected by the configuration of ASP.NET settings.
The ASP.NET setting that determines the maximum amount of data that the Web browser can submit to the Client Access server is maxRequestLength. The maxRequestLength setting is found in the Web.config file. If the setting for the maximum message size for sending on a mailbox is more than the maxRequestLength setting, messages that are sent from Outlook Web App that exceed the maxRequestLength value will generate an error that might be confusing to users. To avoid this, you must configure the maxRequestLength to be at least as large as the largest maximum send size on the mailboxes in your organization.
If a user tries to create or send a message that exceeds the maximum message size or maxRequestLength, a warning will appear in Outlook Web App. The text of the warning will vary, depending on the conditions that generated it.
When a user tries to upload an attachment that's larger than the maximum message size, they receive the following error message in the upload dialog box: "Your attachment is larger than the maximum limit for attachments."
When a user tries to upload one or more attachments that are larger than the ASP.NET MaxRequestLength, they receive the following error message in the Information Bar within the message: "The files <file names> weren't attached because they exceed the maximum size limit of <size limit> MB for attachments."
If a user attaches several files, each of which is smaller than either the maximum message size or maxRequestLength but which together amount to more than the maximum message size, when they click Send, Outlook Web App will show the following message as a banner on the message form: "This message could not be sent because it exceeds the maximum size allowed."
The default attachment size limit for a single attachment is 10 MB.
Looking for other management tasks related to accessing files from Outlook Web App? Check out Managing File and Data Access for Outlook Web App.
You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Text editor" entry in the Client Access Permissions topic.
Find the Outlook Web App Web.config file on the Client Access server. The default location is <drive>\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa.
Make a backup copy of the file.
Open the original file using an editor such as Notepad. Don't use Internet Information Services (IIS) Manager to edit the Web.config file.
Find maxRequestLength and change it to the value that you want. The value is stored in kilobytes (KB). The default value is 30000. The following example shows the maxRequestLength value in the Web.config file.
<httpRuntime maxRequestLength="30000" />
Save and close the file.
|Before you make changes to the Web.config file, make a copy of the file, and store it in a safe location.|