Snow leopard mail with exchange 2007 attachment size

May 25
2

Snow leopard mail with exchange 2007 attachment size

Tue, 2010-05-25 13:58 — superuser

Whilst on the face of things mail.app in Snow leopard should work out of the box with exchange 2007 it still needs settings changing, in this case to send attachments over 5meg. The following fixes this:

You need to edit web.config in the following 2 files and change maxrequestlength to a size in kilobytes i.e. 50000 for ~50meg:

C:\Program Files\Microsoft\Exchange Server\ClientAccess\exchweb\ews
C:\Program Files\Microsoft\Exchange Server\ClientAccess\owa

Then also from a command prompt do the following:

cd \Windows\System32\inetsrv
 
appcmd set config "Default Web Site/ews" -section:requestFiltering -requestLimits.maxAllowedContentLength:50000
 
appcmd set config "Default Web Site/owa" -section:requestFiltering -requestLimits.maxAllowedContentLength:50000

Followed by an iisreset

Comments

Tony Dew (not verified) says:

Thanks you for posting this! It was *almost* exactly what I needed... except for the "maxAllowedContentLength:50000" part.

While the web.config sizes to be modified are in kilobytes (i.e. 1MB is 1024 kilobytes) the maxAllowedContentLength stuff is actually supposed to be in BYTES (i.e. 1MB is 1048576 bytes).

So for attachments up to 50MB, the second stage values should be way bigger:

appcmd set config "Default Web Site/ews" -section:requestFiltering -requestLimits.maxAllowedContentLength:52426800
 
appcmd set config "Default Web Site/owa" -section:requestFiltering -requestLimits.maxAllowedContentLength:52426800

Anonymous (not verified) says:

THANKS SO MUCH!!!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options