博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Exchange2010、2016 发送大附件
阅读量:6148 次
发布时间:2019-06-21

本文共 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" />

参考:

      本文转自cix123  51CTO博客,原文链接:http://blog.51cto.com/zhaodongwei/1972937,如需转载请自行联系原作者
你可能感兴趣的文章
转:Vue keep-alive实践总结
查看>>
深入python的set和dict
查看>>
C++ 11 lambda
查看>>
实验吧 recursive write up
查看>>
Android JSON数据解析
查看>>
DEV实现日期时间效果
查看>>
java注解【转】
查看>>
centos 下安装g++
查看>>
嵌入式,代码调试----GDB扫盲
查看>>
类斐波那契数列的奇妙性质
查看>>
下一步工作分配
查看>>
Response. AppendHeader使用大全及文件下载.net函数使用注意点(转载)
查看>>
Wait Functions
查看>>
代码描述10313 - Pay the Price
查看>>
jQuery最佳实践
查看>>
centos64i386下apache 403没有权限访问。
查看>>
vb sendmessage 详解1
查看>>
jquery用法大全
查看>>
PC-BSD 9.2 发布,基于 FreeBSD 9.2
查看>>
网卡驱动程序之框架(一)
查看>>