本文共 6329 字,大约阅读时间需要 21 分钟。
问题描述:
Exchange2016的服务器,同事反应发邮件时,附件不能超25MB。
查看服务器里的相关的设置都是100MB
解决方法:
通过查看官方文档,打开 cmd 复制执行下面%windir%的部分命令,重新IIS服务,问题解决。
注:下面的数值表示200MB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | ActiveSync %ExchangeInstallPath % FrontEnd\HttpProxy\Sync\web.config %ExchangeInstallPath % ClientAccess\Sync\web.config %windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/Microsoft-Server-ActiveSync/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:235000000 %windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/Microsoft-Server-ActiveSync/" -section:system.web/httpRuntime /maxRequestLength:235000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/Microsoft-Server-ActiveSync/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:235000000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/Microsoft-Server-ActiveSync/" -section:system.web/httpRuntime /maxRequestLength:235000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/Microsoft-Server-ActiveSync/" -section:appSettings /[key= 'MaxDocumentDataSize' ].value:235000000 Exchange Web 服务 %ExchangeInstallPath % FrontEnd\HttpProxy\ews\web.config %ExchangeInstallPath % ClientAccess\exchweb\ews\web.config %windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/ews/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSAnonymousHttpsBinding' ].httpsTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSAnonymousHttpBinding' ].httpTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSBasicHttpsBinding' ].httpsTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSBasicHttpBinding' ].httpTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSNegotiateHttpsBinding' ].httpsTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSNegotiateHttpBinding' ].httpTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSWSSecurityHttpsBinding' ].httpsTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSWSSecurityHttpBinding' ].httpTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSWSSecuritySymmetricKeyHttpsBinding' ].httpsTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSWSSecuritySymmetricKeyHttpBinding' ].httpTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSWSSecurityX509CertHttpsBinding' ].httpsTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /customBinding.[name= 'EWSWSSecurityX509CertHttpBinding' ].httpTransport.maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /webHttpBinding.[name= 'EWSStreamingNegotiateHttpsBinding' ].maxReceivedMessageSize:279668280 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings /webHttpBinding.[name= 'EWSStreamingNegotiateHttpBinding' ].maxReceivedMessageSize:279668280 Web 上的 Outlook %ExchangeInstallPath % FrontEnd\HttpProxy\owa\web.config %ExchangeInstallPath % ClientAccess\Owa\web.config %windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/owa/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:235000000 %windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/owa/" -section:system.web/httpRuntime /maxRequestLength:235000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:235000000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.web/httpRuntime /maxRequestLength:235000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings /webHttpBinding.[name= 'httpsBinding' ].maxReceivedMessageSize:235000000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings /webHttpBinding.[name= 'httpBinding' ].maxReceivedMessageSize:235000000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings /webHttpBinding.[name= 'httpsBinding' ].readerQuotas.maxStringContentLength:235000000 %windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings /webHttpBinding.[name= 'httpBinding' ].readerQuotas.maxStringContentLength:235000000 |
Exchange 2010修改web.config里的值
<requestLimits maxAllowedContentLength="35000000" />
参考: