クライアント固有のメッセージのサイズ制限を構成する

製品: Exchange Server 2013

Microsoft Exchange Server 2013 では、Exchange organizationを通過するメッセージに適用されるメッセージ サイズの制限がいくつかあります。 詳細については、「メッセージ サイズの制限」を参照してください。

ただし、ActiveSync または Exchange Web Services (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.configmaxAllowedContentLength キーはありません。 ただし、ActiveSync の最大メッセージ サイズは、サーバー上のすべての Web サイト に適用される maxAllowedContentLength 値の影響を受けます。 既定値は 30000000 バイト (30 MB) です。 IIS Manager のクライアント アクセス サーバーとメールボックス サーバーの ActiveSync のこれらの値を確認するには、次の手順を実行します。

  1. 次のいずれかの手順を実行します。

    • クライアント アクセス サーバーで IIS マネージャーを開き、[ サイト>の既定の Web サイト ] に移動し、[ Microsoft-Server-ActiveSync] を選択します。
    • メールボックス サーバーで IIS マネージャーを開き、[ サイト>] [Exchange バックエンド ] に移動し、[ Microsoft-Server-ActiveSync] を選択します。
  2. [機能ビュー] が選択されていることを確認して、 [管理] セクションの [構成エディター] をダブルクリックします。

  3. [ セクション ] フィールドのドロップダウン矢印をクリックし、 system.webServer>セキュリティ に移動し、[ requestFiltering] を選択します。

  4. 結果の中の [requestLimits] を展開すると、 [maxAllowedContentLength] および既定値の 30000000 (バイト) が表示されます。

maxAllowedContentLength 値を変更するには、新しい値をバイト数で入力して、 [適用] をクリックします。 クライアント アクセス サーバーとメールボックス サーバーの値を変更する必要があります。 IIS マネージャーで値を変更すると、新しい maxAllowedContentLength キーが対応する web.config ファイル (%ExchangeInstallPath%FrontEnd\HttpProxy\Sync\web.config クライアント アクセス サーバー上、メールボックス %ExchangeInstallPath%ClientAccess\Sync\web.config サーバー上) に書き込まれます。

ActiveSync クライアントの最大メッセージ サイズを変更するには、クライアント アクセス サーバーとメールボックス サーバー上のファイルの web.configmaxRequestLength、メールボックス サーバー上のファイルの web.configMaxDocumentDataSize、クライアント アクセス サーバーとメールボックス サーバー上の IIS Manager の 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) と認証方法の異なる組み合わせに対応する 14 個の個別のインスタンス maxReceivedMessageSize="67108864" があります。

  • Exchange Web Services クライアントの最大メッセージ サイズを変更するには、両方web.configのファイルの maxAllowedContentLength の値と、メールボックス サーバー上のファイル内のすべての 14 個のインスタンスのmaxReceivedMessageSize="67108864"値を変更するweb.config必要があります。

  • メールボックス サーバー上の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 と maxStringContentLength="35000000" https のバインドに対応する 2 つの個別の値maxReceivedMessageSize="35000000"のインスタンスがあります。

  • Outlook Web App クライアントの最大メッセージ サイズを変更するには、メールボックス サーバー上のファイル内の maxReceivedMessageSizemaxStringContentLength の両方のインスタンスを含む、両方のファイル内のすべての値を変更するweb.config必要があります。

  • メールボックス サーバー上の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のフォーラムにアクセスしてください。

メモ帳を使用してクライアント固有のメッセージのサイズ制限を構成する

  1. 適切な web.config ファイルをメモ帳で開きます。 たとえば、Exchange Web Services クライアントの web.config ファイルを開くには、次のコマンドを実行します。

    Notepad %ExchangeInstallPath%ClientAccess\exchweb\ews\web.config
    Notepad %ExchangeInstallPath%FrontEnd\HttpProxy\ews\web.config
    
  2. このトピックの前述の表で説明したとおり、該当する web.config ファイルで関連するキーを見つけます。 たとえば、Exchange Web Services クライアントの場合、ファイルとメールボックス サーバー上のファイル内の値maxReceivedMessageSize="67108864"のすべての 14 インスタンスの両方で maxAllowedContentLength キーをweb.config見つけます。

    <requestLimits maxAllowedContentLength="67108864" />
    ...maxReceivedMessageSize="67108864"...
    

    たとえば、Base64 でエンコードされた最大メッセージ サイズを約 64 MB にするには、 のすべてのインスタンス 67108864 を (64*4/3*1048576) に 89478486 変更します。

    <requestLimits maxAllowedContentLength="89478486" />
    ...maxReceivedMessageSize="89478486"...
    
  3. 完了したら、web.config ファイルを保存して閉じます。

  4. 次のコマンドを実行して 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 Services のメッセージ サイズ制限を構成する

%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 になります。