Pages

Tuesday, April 19, 2016

How to Increase File Attachment Size in Exchange 2013

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:
  1. Open Exchange Management Shell (EMS)>> Run as Administrator.
  2. 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 
  3. 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
    Note: Instead of 100MB, you may mention any other size according to your requirement 
     

  4. Now minimize the EMS window and go to Start >> Administrative Tools and select IIS Manager.
  5. The IIS Manager window will appear in which on the very left hand side click on + for expanding then select Sites and expand it. 
  6. On the windowpane displaying in middle of IIS Manager Window, double-click on Configuration Editor in management section.
  7. After that, you find a Section text box with a Drop down button. Click on that button and expand system.webServer >> security 
  8. In security menu, select requestFiltering and double-click on it
  9. Now go to requestLimits and expand it. 
  10. After expanding, you will find maxAllowedContentLength. In this increase its value in bytes.
  11. Similarly, go to EWS web.config file and increase value (in bytes) of maxAllowedContentLength & maxReceivedMessageSize
  12. Close running applications and restart the system.
Point to Remember: The steps should be performed on both side i.e. client side as well as the server side.

2 comments:

lariya sun said...

point number 3 in the picture, command "Set-TransportConfig -MaxReceiveSize 100MB -MaxSendSize 100MB" I see it is error, it is not working. please advise

Tej Pratap Shukla said...

Hi Lariya,
The above given command is working correctly. I have checked it in my Test Environment.
There might be some other issue.
You can share the error message which you are getting while running the command. I can help you to overcome from this issue.

Post a Comment

Post a reply