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:
- Start the Exchange Management Shell
Enter the following command:
Get-TransportAgent | Format-List-
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 -
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.