Email not only contains the text messages but also consists of documents, images, videos, etc., in the form of attachments. The other forms of data are attached along with mails and hence to protect our mailbox databases from unmanageable growth, it is necessary to know how to increase file attachment size in Exchange 2013.
Remember that there is a difference between message size limits and attachment size limits. The message size limits owns the limit to be applied to total size of a message that involves the header, body, and any attachment of the mail. However, the attachment size limit is a constraint applied to size of a single file that is to be attached with the mail.
Query: Now the problem arises that how to increase file attachment size in exchange 2013? Well the blog provides you with a workaround to resolve your query.
Solution: Follow the following steps to update/increase attachment size limit and hence, protect your mailbox from uncontrolled growth:
- Open Exchange Management Shell (EMS)>> Run as Administrator.
To determine the current size limit of attachments write and execute the following commands in EMS.
Get-TransportConfig | Format-List -Property MaxReceiveSize, MaxSendSize
Get-SendConnector | Format-List -Property Identity, MaxMessageSize
Get-ReceiveConnector | Format-List -Property Identity, MaxMessageSize
Now to increase the size limit write and execute the following commands.
Set-TransportConfig -MaxReceiveSize 100MB -MaxSendSize 100MB
Get-SendConnector | Set-SendConnector -MaxMessageSize 100MB
Get-ReceiveConnector | Set-ReceiveConnector -MaxMessageSize 100MB
- Now minimize the EMS window and go to Start >> Administrative Tools and select IIS Manager.
- The IIS Manager window will appear in which on the very left hand side click on + for expanding then select Sites and expand it.
- On the windowpane displaying in middle of IIS Manager Window, double-click on Configuration Editor in management section.
- After that, you find a Section text box with a Drop down button. Click on that button and expand system.webServer >> security
- In security menu, select requestFiltering and double-click on it
- Now go to requestLimits and expand it.
- After expanding, you will find maxAllowedContentLength. In this increase its value in bytes.
- Similarly, go to EWS web.config file and increase value (in bytes) of
- Close running applications and restart the system.