KB - How to redirect blacklisted emails to the Junk folder (Exchange 2013)

How to redirect blacklisted emails to the Junk folder (Exchange 2013)

Article was last updated on August 3, 2022. View products that this article applies to.

Preface

The following article provides step-by-step instructions to redirect all emails blacklisted by ORF to the recipients' Junk folder instead of rejecting them. This could be useful if your users wish to review blacklisted emails to make sure no legitimate email has been blocked.

Please note that the Junk folder redirection will work only on Exchange 2013 servers with the Mailbox role installed (either running as a standalone Mailbox server or a Client Access Server + Mailbox hybrid), as the On Arrival filtering point is not available on standalone Client Access Servers. To learn more about the limitations on different roles, please consult our related article.

This article is for Exchange 2013: if you have Exchange 2003, follow the steps described in this KB article instead. Exchange 2007/2010 users should consult this KB article.

Exchange Configuration

  1. Start the Exchange Management Shell
  2. Issue the following command to create a new Transport Rule, which will assign SCL score 9 to all emails blacklisted and tagged by ORF:
  3. New-TransportRule "ORFJunkFolderRedirect" -SubjectContainsWords "[SPAM]" -SetSCL 9

  4. Re-order your Transport Agents so the Transport Agent of ORF (Vamsoft ORF SMTP Receive Agent) runs before the Transport Rule Agent. This will ensure ORF will tag emails first and the Transport Rule Agent will evaluate the email only afterwards (and assign the SCL score according to the rule created in the previous step). The following command will set the priority of the Vamsoft ORF SMTP Receive Agent to 1 (so it will be called first):
  5. Set-TransportAgent -Identity "Vamsoft ORF SMTP Receive Agent" -Priority 1

  6. Restart the MSExchangeTransport Service to apply the changes:
  7. Restart-Service MSExchangeTransport

  8. Make sure the Transport Agent priorities are set correctly:
  9. Get-TransportAgent | fl

ORF Configuration

  1. Start the ORF Administration Tool and connect to the local or remote ORF instance
  2. Expand Filtering / Actions
  3. Click the Edit button under Default Action and select Accept & Modify
  4. Check Tag email subject with the text below
  5. In the Subject tag field, enter: [SPAM]
  6. Click OK
  7. Save the ORF configuration to apply the new settings (Ctrl + S).

If everything was configured properly, ORF will tag blacklisted emails, the Transport Rule will increase the SCL score of the tagged email to 9, and it will land in the Junk folder of the target recipient.

Applies To

The article above is not specific to any ORF versions.

hnp1 | hnp2