Skip to main content
contreraspa
Staff
Staff
September 30, 2024

Technical Tip: How to insert a disclaimer for incoming messages for specific users

  • September 30, 2024
  • 0 replies
  • 1331 views

 

Description This article describes how to insert a disclaimer in incoming messages, only for specific users.
Scope FortiMail.
Solution

As it is well known, FortiMail allows configuring the insertion of a disclaimer for sending/receiving messages at the system or domain level (System -> Mail Settings -> Disclaimer), as well as, allowing to exclude some users (senders/recipients) from these disclaimer notices (System -> Mail Settings -> Disclaimer Exclusion List).


However, there are some scenarios where there are hundreds or thousands of users, and it is required to insert the disclaimer in incoming messages, addressed to specific users in the protected domains.
To achieve this, a dictionary profile must be created (Profile -> Dictionary -> Dictionary -> New), which contains an entry for each user:

Dictionary profile.png

 

Each entry must be created as a regular expression with the following syntax:

^To:.*user1@example\.com.*$

Then, create a content action (Profile -> Content -> Action -> New), which inserts the disclaimer into the message:

Content action profile.png

 

Also, create a content profile (Profile -> Content -> Content -> New), and modify the Content Monitor and Filtering section, to add an entry that monitors the dictionary profile and executes the content action previously created:

 Content profile.png

 

This profile must be assigned to an inbound recipient policy accordingly (system or domain). After this, every time an incoming message for these specific users is received, the disclaimer will be inserted:

Received message.png