このトピックでは Exchange Gateway および Exchange Server の設定と管理を行うとき、および最小の設定を拡張するときに発生する可能性のあるシナリオについて説明します。
Clearswift SXG Interceptor Management Shellから、次を入力します。
Get-SXGInterceptor
Clearswift SXG Interceptor Management Shellから、次を入力します。
Remove-SXGGateway GW1
SXG Interceptor の HUB1.example.com という名前のものを有効化するには、Clearswift SXG Interceptor Management Shellから、次を入力します。
Set-SXGInterceptor -Identity HUB1.example.com -Enabled $true
SXG Interceptor の HUB1.example.com という名前のものを無効化するには、Clearswift SXG Interceptor Management Shellから、次を入力します。
Set-SXGInterceptor -Identity HUB1.example.com -Enabled $false
Clearswift SXG Interceptor Management Shellから、次を入力します。
Get-SXGMessage -Interceptor HUB1.example.com -IncludeSubject | Sort-Object Gateway
Clearswift SXG Interceptor Management Shellから、次を入力します。
Get-SXGMessage -Interceptor HUB1.example.com -IncludeSubject | Format-Table Sender, Recipients, Subject
次のコマンドを使って、5 分以上キューに登録されているメールを取得します。
Clearswift SXG Interceptor Management Shellから、次を入力します。
Get-SXGInterceptor | get-SXGMessage | where {$_.QueuedDuration -ge "00:05:00"}
Set-SXGInterceptionRules コマンドレットをClearswift SXG Interceptor Management Shell から使用して、SXG Interceptor の動作を設定できます。一般的なシナリオと必要なコマンドレットの使用パラメータを次の表に示します。
シナリオ | 使用パラメータ |
---|---|
ローカル ストアからのメールのインターセプトを制御します。 | -InterceptorLocalOnly <$true|$false> |
アドレス リストのアドレスが使用される前に検証します。 | -ValidateAddresses <$true|$false> |
送信者なしのメールのインターセプトを制御します (たとえば NDR)。 | -InterceptEmptySenders <$true|$false> |
信頼するサーバーの Exchange Server を使って、ポリシーが適用されることなく、メールを送信します。 | -TrustedHosts <String[]> |
信頼済みホストの長いリストを追加します。 |
-TrustedHosts (Get-Content FilewithTrustedHosts.txt) FilewithTrustedHosts.txt には各行に各ホストが含まれています。 |
リストに含まれる信頼済みサイトからのメールをインターセプトしないようにSXG Interceptor を設定しましたが、このリストをクリアします。 | -TrustedHosts @() |
SXG Interceptor がメールの処理に失敗したときの対応を制御します。 | -FailureAction <Deliver|Delete|NonDeliver] |
特定のメッセージ クラス リストに一致するメールをSXG Interceptor が処理するときの対応を制御します。 |
次を組み合わせて使用します。 -MessageClassLogic <DoNotIntercept|Intercept|NotUsed> -MessageClassList <String[]> |
SXG Interceptor による特定の受信者へのメールの処理を制御します。 |
次を組み合わせて使用します。 -RecipientAddressLogic <DoNotIntercept|Intercept|NotUsed> -RecipientAddressList <String[]> |
SXG Interceptor による特定のドメインの受信者へのメールの処理を制御します。 |
次を組み合わせて使用します。 -RecipientDomainLogic <DoNotIntercept|Intercept|NotUsed> -RecipientDomainList <String[]> |
SXG Interceptor による特定の送信者からメールの処理を制御します。 |
次を組み合わせて使用します。 -SenderAddressLogic <DoNotIntercept|Intercept|NotUsed> -SenderAddressList <String[]> |
SXG Interceptor による特定の送信ドメインからメールの処理を制御します。 |
次を組み合わせて使用します。 -SenderDomainLogic <DoNotIntercept|Intercept|NotUsed> -SenderDomainList <String[]> |
Interception のルールを特定のサイトにのみ適用します。 | -AssignedSites <String[]> |
次のコマンドは、example.com のサポート メールボックスに送信されたメールをインターセプトしないようにするために必要なルール設定を行います。コマンド ラインで次を入力します。
Set-SXGnterceptionRules -RecipientAddressLogic DoNotIntercept -RecipientAddressList support*@example.com
次のコマンドは、Site1Rules の設定を行って、userA@example.com および userB@example.com から送信されたメールのみをインターセプトするようにします。コマンド ラインで次を入力します。
Set-SXGnterceptionRules Site1Rules -SenderAddressLogic Intercept -SenderAddressList userA@example.com, userB@example.com
次のコマンドは、example.com に送信されたすべてのメールをインターセプトするために必要なルール設定を行います。コマンド ラインで次を入力します。
Set-SXGnterceptionRules -RecipientDomainLogic Intercept -RecipientDomainList example.com
ルールのセットに名前を付けて、それを追加します。
この例では、MyRuleSet が使われています。Clearswift SXG Interceptor Management Shellから、次を入力します。
Add-SXGInterceptionRules -Identity MyRuleSet
MyRuleSet にルールを設定して、そのセットをサイトに割り当てます。
この例では、メール受信者 userA@example.com および userB@example.com はインターセプトされ、ルール セットが Site1 に割り当てられます。
Set-SXGInterceptionRules -Identity MyRuleSet -RecipientAddressLogic Intercept -RecipientaddressList userA@example.com,userB@example.com -AssignedSites Site1
次のコマンドを使って MyRuleSet を MyNewRuleSet にコピーします。
Copy-SXGInterceptionRules -Identity MyRuleSet -TargetIdentity MyNewRuleSet
Windows のイベント ログで、SXG Interceptor イベントはアプリケーション ログに Clearswift SXG Interceptor をソースとして書き込まれます。
SXG Interceptor ログ ファイルは C:\ProgramData\Clearswift\SXGInterceptor\Logs ディレクトリにあります。