Skip to main content
mattia1
Staff
Staff
August 11, 2026

Technical Tip: Exclude a specific sender matching the recipient policy

  • August 11, 2026
  • 0 replies
  • 51 views

Description

This article describes how to exclude a specific sender that matches a Recipient Policy.

Scope

FortiMail v8.0.

Solution

  1. Enable the option and configure the recipient rule parameters.


In the GUI:


Navigate to Policy -> Recipient Policy -> New -> Enable Sender Exclusion -> Choose 'Type' -> Enter the value.

4aa2974a.png


In the CLI:

config policy recipient
(recipient) # edit 1
(1) # set sender-exclusion-status enable
(1) # set sender-exclusion-type user-wildcard
(1) # set sender-exclusion-name user2
(1) # set sender-exclusion-domain lab.local
(1) # end


a6b99f29.png


  1. Confirm the Created Rule.


a0983baf.png


Results:

In this test, a Recipient Policy is created to apply a specific filter on the Antispam profile -> banned word for the entire domain *@lab.local Except user2@lab.local.

Matching the Configured Rule and applying a banned word action:

89bce255.png


It is excluded from the configured rule and the email is accepted:

a2fb24f1.png


Note: Sender Exclusion does not stop policy evaluation. Instead, FortiMail skips the matching Recipient Policy when the sender is excluded and continues evaluating the remaining policies in the list.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!