KB - Changing the filtering order (Exchange 2010/2007)

Changing the filtering order (Exchange 2010/2007)

Article was last updated on June 29, 2020. View products that this article applies to.

In most cases, ORF is not the only software scanning emails on your server: other components (like the email filtering module of your resident anti-virus scanner, Content Filtering feature of Exchange, etc) may reject, alter or divert the email before ORF could test it.

By default, ORF has lower priority than other components. If you want ORF to filter emails first, the priorities have to be changed.

Changing Priorities on Exchange 2010 and Exchange 2007

The filtering order depends on the so called Transport Agent priorities. To change these:

  1. Start the Exchange Management Shell
  2. Enter the following command:

    Get-TransportAgent | Format-List
  3. ORF has two agents, the Vamsoft ORF Routing Agent and the Vamsoft ORF SMTP Receive Agent. You should set the priority of the latter higher than the priority of other Transport Agents, so it would run before them (the lower the number the higher the priority).

    The following command changes the priority to 1:

    Set-TransportAgent -Identity "Vamsoft ORF SMTP Receive Agent" -Priority 1
  4. Finally, restart the MSExchangeTransport Service to apply the changes:

    Restart-Service MSExchangeTransport

Please note that the priorities are restored to their default state after you upgrade or re-install ORF. Other software may also change the priorities without prior notice (e.g., Exchange updates).

Applies To

The article above is not specific to any ORF versions.

hnp1 | hnp2