Skip to main content
cysaw
Staff & Editor
Staff & Editor
Sep 4, 2025 6:15 AM UTC

Technical Tip: How to configure the FortiMail to insert specific header into emails from specific sender's IP

Description

This article describes how to configure FortiMail to insert a specific header into emails from a specific sender's IP.

Scope FortiMail.
Solution

Go to Policy -> IP Policy and select 'New 'to create a new IP policy.


cysaw_0-1756880679170.png

 

Look for 'Source', select 'IP Group', and select the + sign to add a new IP group.


cysaw_1-1756880679172.png

 

Create a new session profile by selecting the + sign next to the Session Profile:


cysaw_2-1756880679173.png

 

In the new session profile, look for 'Session Setting' and expand it. Look for the 'Session Action', select 'All' for 'Message selection', and select the + sign.

 

cysaw_3-1756880679173.png

 

Enable the 'Insert Header' option and select 'New' to configure the header that FortiMail will insert into the email header.


cysaw_4-1756880679174.png

 

 
Snipaste_2025-09-04_08-41-40.png

 

In the IP Policy, look for the 'Miscellaneous' section and enable the option 'Take precedence over recipient-based policy match'.


cysaw_5-1756880679175.png

 

Note: Ensure that the newly created policy is positioned above the generic policy with source 0.0.0.0/0.

 

Check the result in the email header and will see the new header is added to the email header.


cysaw_6-1756880679176.png

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024