Skip to main content
jandrysek
Staff
Staff
July 11, 2025

Technical Tip: How to block email by subject

  • July 11, 2025
  • 0 replies
  • 902 views
Description This article describes how to block emails with a specific pattern in the email subject.
Scope FortiMail.
Solution

Navigate to Profile -> Content and create a new profile by using the button '+ New'.

 

Screenshot 2025-06-27 at 10.46.33.png

 

In the Content Profile, set a name, action, and in the Content Monitor and Filtering, select '+ New' to create a new Dictionary entry.

 

Screenshot 2025-06-27 at 10.48.26.png

 

Create a new dictionary:

 

Screenshot 2025-06-27 at 10.51.40.png

 

Set a Dictionary name and create a new Dictionary Entry:

 

Screenshot 2025-06-27 at 10.53.39.png

 

Set a pattern word or a regex pattern that should be detected. For a pattern word, select the Pattern type: Wildcard.

Enable: 'Search header':

 

Screenshot 2025-06-27 at 10.55.45.png

 

Select 'Create' for all the windows.

Navigate to the Policy -> Recipient Policy and select the created Content profile in the Recipient Policy.

 

Screenshot 2025-06-27 at 11.00.12.png

 

Result:

When the email with the word 'Spam' arrives at FortiMail, the email is quarantined because the subject includes the word 'Spam':

 

Screenshot 2025-06-27 at 11.09.08.png