製品: Exchange Server 2013
Microsoft Exchange Server 2013 では、Exchange organization を通過するメッセージに適用されるいくつかの異なるメッセージ サイズ制限があります。 詳細については、「メッセージ サイズの制限」を参照してください。
ただし、ActiveSync または Exchange Web サービス (EWS) を使用する Outlook Web App および電子メール クライアントに対して構成できるクライアント固有のメッセージ サイズ制限があります。 Exchange organization 全体のメッセージ サイズ制限を変更する場合は、Outlook Web App、ActiveSync、Exchange Web サービスのメッセージ サイズ制限が適切に設定されていることを確認する必要があります。 これらの値は、クライアント アクセス サーバーおよびメールボックス サーバー上の web.config ファイルで構成します。 以下の表で、これらの制限を説明します。
Exchange ActiveSync:
| サーバーの役割 | 構成ファイル | キーと既定値 | Size |
|---|---|---|---|
| クライアント アクセス | %ExchangeInstallPath%FrontEnd\HttpProxy\Sync\web.config |
maxAllowedContentLength="30000000 bytes" 既定では存在しません (コメントを参照)。 |
バイト |
| クライアント アクセス | %ExchangeInstallPath%FrontEnd\HttpProxy\Sync\web.config |
maxRequestLength="10240" |
キロバイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\Sync\web.config |
maxAllowedContentLength="30000000 bytes" 既定では存在しません (コメントを参照)。 |
バイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\Sync\web.config |
maxRequestLength="10240" |
キロバイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\Sync\web.config |
<add key="MaxDocumentDataSize" value="10240000"> |
バイト |
ActiveSync の制限に関するコメント:
既定では、ActiveSync の web.config ファイルには maxAllowedContentLength キーはありません。 ただし、ActiveSync の最大メッセージ サイズは、サーバー上のすべての Web サイトに適用される maxAllowedContentLength 値の影響を受けます。 既定値は 30000000 バイト (30 MB) です。 IIS マネージャのクライアント アクセス サーバーおよびメールボックス サーバーで ActiveSync のこれらの値を確認するには、次の手順を実行します。
次のいずれかの手順を実行します。
- クライアント アクセス サーバーで、 IIS マネージャーを開き、[ サイト>既定の Web サイト ] に移動して、[ Microsoft-Server-ActiveSync] を選択します。
- メールボックス サーバーで、 IIS マネージャーを開き、[ サイト>Exchange バック エンド ] に移動して、[ Microsoft-Server-ActiveSync] を選択します。
[機能ビュー] が選択されていることを確認して、 [管理] セクションの [構成エディター] をダブルクリックします。
[ セクション] フィールドのドロップダウン矢印をクリックし、 system.webServer>security に移動して、[ requestFiltering] を選択します。
結果の中の [requestLimits] を展開すると、 [maxAllowedContentLength] および既定値の 30000000 (バイト) が表示されます。
maxAllowedContentLength 値を変更するには、新しい値をバイト数で入力して、 [適用] をクリックします。 クライアント アクセス サーバーとメールボックス サーバーの値を変更する必要があります。 IIS マネージャーで値を変更すると、新しい maxAllowedContentLength キーが対応する web.config ファイルに書き込まれます (クライアント アクセス サーバーでは %ExchangeInstallPath%FrontEnd\HttpProxy\Sync\web.config 、メールボックス サーバーでは %ExchangeInstallPath%ClientAccess\Sync\web.config )。
ActiveSync クライアントの最大メッセージ サイズを変更するには、クライアント アクセス サーバーおよびメールボックス サーバー上の web.config ファイルの maxRequestLength、メールボックス サーバー上の web.config ファイルの MaxDocumentDataSize、およびクライアント アクセス サーバーおよびメールボックス サーバー上の IIS マネージャーの maxAllowedContentLength の値を変更する必要があります。
Exchange Web サービス:
| サービス ロール | 構成ファイル | キーと既定値 | Size |
|---|---|---|---|
| クライアント アクセス | %ExchangeInstallPath%FrontEnd\HttpProxy\ews\web.config |
maxAllowedContentLength="67108864" |
バイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\exchweb\ews\web.config |
maxAllowedContentLength="67108864" |
バイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\exchweb\ews\web.config |
14 インスタンス maxReceivedMessageSize="67108864" |
バイト |
Exchange Web サービスの制限に関するコメント:
バインド (http および https) と認証方法のさまざまな組み合わせに対応する、値
maxReceivedMessageSize="67108864"の 14 個の個別のインスタンスがあります。Exchange Web サービス クライアントの最大メッセージ サイズを変更するには、メールボックス サーバー上の
web.configファイルと、web.configファイル内のmaxReceivedMessageSize="67108864"の 14 インスタンスすべての maxAllowedContentLength の値を変更する必要があります。メールボックス サーバー上の
web.configファイルには、変更する必要のない UMLegacyMessageEncoderSoap11Element バインディングの値maxReceivedMessageSize="1048576"のインスタンスも 2 つあります。maxRequestLength は、両方の web.config ファイルに存在する ASP.NET 設定ですが、Exchange Web サービスでは使用されないため、変更する必要はありません。
Outlook Web App:
| サーバーの役割 | 構成ファイル | キーと既定値 | Size |
|---|---|---|---|
| クライアント アクセス | %ExchangeInstallPath%FrontEnd\HttpProxy\owa\web.config |
maxAllowedContentLength="35000000" |
バイト |
| クライアント アクセス | %ExchangeInstallPath%FrontEnd\HttpProxy\owa\web.config |
maxRequestLength="35000" |
キロバイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\Owa\web.config |
maxAllowedContentLength="35000000" |
バイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\Owa\web.config |
maxRequestLength="35000" |
キロバイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\Owa\web.config |
の 2 個のインスタンス maxReceivedMessageSize="35000000" |
バイト |
| Mailbox | %ExchangeInstallPath%ClientAccess\Owa\web.config |
の 2 個のインスタンス maxStringContentLength="35000000" |
バイト |
Outlook Web App の制限に関するコメント:
メールボックス サーバー上の
web.configファイルには、http および https バインディングに対応するmaxReceivedMessageSize="35000000"とmaxStringContentLength="35000000"の値の 2 つの個別のインスタンスがあります。Outlook Web App クライアントの最大メッセージ サイズを変更するには、メールボックス サーバー上の
web.configファイルの maxReceivedMessageSize と maxStringContentLength の両方のインスタンスを含め、両方のファイルでこれらすべての値を変更する必要があります。メールボックス サーバー上の
web.configファイルには、変更する必要のない MsOnlineShellService バインディングの値maxStringContentLength="102400"のインスタンスもあります。
すべてのメッセージ サイズ制限について、適用する実際のサイズよりも大きい値を設定する必要があります。 この値の増加は、メッセージの添付ファイルやその他のバイナリ データが Base64 でエンコードされた後に発生する必然的なメッセージ サイズの増加を考慮するために必要です。 Base64 エンコードはメッセージのサイズを約 33% 増加させるため、メッセージ サイズ制限に指定する値は、実際に使用可能なメッセージ サイズよりも約 33% 大きくなります。 たとえば、メッセージ サイズの最大値を 64 MB に指定した場合、現実的なメッセージ サイズの最大値は約 48 MB になります。
事前に必要な知識
予想所要時間 : 15 分
Exchange のアクセス許可は、このトピックの手順には適用されません。 これらの手順は、Exchange Server のオペレーティング システムで実行されます。
Web.config 構成ファイルに保存した変更は、IIS を再起動した後に適用されます。
Base64 エンコードによってサイズを 33% 増加させるには、希望する新しい最大サイズ値 (メガバイト単位) に 4/3 を掛けます。 値をキロバイトに変換するには、1024 を乗算します。 この値をバイトに変換するには、1048576 (1024*1024) を乗算します。 Base64 エンコードによるサイズの増加は 33% を超える場合があり、添付ファイルのサイズ、種類、圧縮、メッセージの作成と送信に使用されるメール クライアントなど、いくつかの要因に依存することに注意してください。
Exchange XML アプリケーション構成ファイルで行うカスタマイズ済みのサーバーごとの設定 (クライアント アクセス サーバーの web.config ファイルまたはメールボックス サーバーの EdgeTransport.exe.config ファイルなど) は、Exchange 累積更新プログラム (CU) のインストール時に上書きされます。 インストール後にサーバーを簡単に再構成できるよう、必ずこの情報を保存しておいてください。 これらの設定は、Exchange 累積更新プログラムのインストール後に構成し直す必要があります。
このトピックの手順で使用可能なキーボード ショートカットについては、「Exchange 管理センターのキーボード ショートカット」を参照してください。
ヒント
問題がある場合は、 Exchange のフォーラムで質問してください。 Exchange Server のフォーラムにアクセスします。
メモ帳を使用してクライアント固有のメッセージのサイズ制限を構成する
適切な web.config ファイルをメモ帳で開きます。 たとえば、Exchange Web サービス クライアントの web.config ファイルを開くには、次のコマンドを実行します。
Notepad %ExchangeInstallPath%ClientAccess\exchweb\ews\web.config Notepad %ExchangeInstallPath%FrontEnd\HttpProxy\ews\web.configこのトピックの前述の表で説明したとおり、該当する web.config ファイルで関連するキーを見つけます。 たとえば、Exchange Web サービス クライアントの場合は、メールボックス サーバー上の
web.configファイルの両方のファイルと、値の 14 個のインスタンスすべてmaxReceivedMessageSize="67108864"maxAllowedContentLength キーを見つけます。<requestLimits maxAllowedContentLength="67108864" /> ...maxReceivedMessageSize="67108864"...たとえば、Base64 でエンコードされた最大メッセージ サイズを約 64 MB にできるようにするには、
67108864のすべてのインスタンスを89478486(64*4/3*1048576) に変更します。<requestLimits maxAllowedContentLength="89478486" /> ...maxReceivedMessageSize="89478486"...完了したら、web.config ファイルを保存して閉じます。
次のコマンドを実行して IIS を再起動します。
IISReset /noforce
コマンド ラインからクライアント固有のメッセージのサイズ制限を構成する
メモ帳を使用する代わりに、コマンド ラインからクライアント固有のメッセージのサイズ制限を構成することもできます。 Exchange サーバーで管理者特権でのコマンド プロンプト ( [管理者として実行] を選択して開くコマンド プロンプト ウィンドウ) を開き、構成する制限に該当するコマンドを実行します。
注:
コマンドのサイズ値は既定値であるため、変更する必要があります。
値がバイト単位か、キロバイト単位かに注意してください。
ActiveSync メッセージのサイズ制限を構成する
%windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/Microsoft-Server-ActiveSync/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:30000000
%windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/Microsoft-Server-ActiveSync/" -section:system.web/httpRuntime /maxRequestLength:10240
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/Microsoft-Server-ActiveSync/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:30000000
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/Microsoft-Server-ActiveSync/" -section:system.web/httpRuntime /maxRequestLength:10240
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/Microsoft-Server-ActiveSync/" -section:appSettings "/[key='MaxDocumentDataSize'].value:10240000"
Exchange Web サービスのメッセージ サイズ制限を構成する
%windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/ews/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:67108864
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:67108864
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSAnonymousHttpsBinding'].httpsTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSAnonymousHttpBinding'].httpTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSBasicHttpsBinding'].httpsTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSBasicHttpBinding'].httpTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSNegotiateHttpsBinding'].httpsTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSNegotiateHttpBinding'].httpTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSWSSecurityHttpsBinding'].httpsTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSWSSecurityHttpBinding'].httpTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSWSSecuritySymmetricKeyHttpsBinding'].httpsTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSWSSecuritySymmetricKeyHttpBinding'].httpTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSWSSecurityX509CertHttpsBinding'].httpsTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/customBinding.[name='EWSWSSecurityX509CertHttpBinding'].httpTransport.maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/webHttpBinding.[name='EWSStreamingNegotiateHttpsBinding'].maxReceivedMessageSize:67108864"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/ews/" -section:system.serviceModel/bindings "/webHttpBinding.[name='EWSStreamingNegotiateHttpBinding'].maxReceivedMessageSize:67108864"
Outlook Web App のメッセージ サイズ制限を構成する
%windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/owa/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:35000000
%windir%\system32\inetsrv\appcmd.exe set config "Default Web Site/owa/" -section:system.web/httpRuntime /maxRequestLength:35000
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.webServer/security/requestFiltering /requestLimits.maxAllowedContentLength:35000000
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.web/httpRuntime /maxRequestLength:35000
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings "/webHttpBinding.[name='httpsBinding'].maxReceivedMessageSize:35000000"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings "/webHttpBinding.[name='httpBinding'].maxReceivedMessageSize:35000000"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings "/webHttpBinding.[name='httpsBinding'].readerQuotas.maxStringContentLength:35000000"
%windir%\system32\inetsrv\appcmd.exe set config "Exchange Back End/owa/" -section:system.serviceModel/bindings "/webHttpBinding.[name='httpBinding'].readerQuotas.maxStringContentLength:35000000"
正常な動作を確認する方法
クライアント固有のメッセージ サイズ制限が正常に構成されたことを確認するには、影響を受けるクライアントによってアクセスされているメールボックスとの間でテスト メッセージを送受信する必要があります。 テスト メッセージが構成した値を約 33% 下回るように、複数の小さい添付ファイルやサイズの大きい 1 つの添付ファイルを試すことができます。 たとえば、構成した値が 85 MB の場合、実際の最大メッセージ サイズは約 64 MB になります。