Hi everyone,
I would like some clarification regarding FortiMail HA in active–passive mode, specifically around IP addressing and routing/firewall configuration.
I already know how to configure HA itself, but my main question is about IP addresses:
In an active–passive HA setup, do both FortiMail units use the same IP address, or does each unit keep a different IP address?
I currently have a Virtual IP configured on my firewall (192.168.1.1) to forward SMTP traffic.
At the moment, the primary FortiMail has IP 192.168.1.1(which is the VIP), and the secondary FortiMail has IP 192.168.1.2.
SMTP traffic is currently being forwarded correctly to the primary unit.
My concern is failover behavior:
What should be configured so that when the primary FortiMail goes down, the secondary automatically takes over?
Once HA is configured and synchronized, does the secondary automatically take over the primary’s IP address (192.168.1.1), or do I need to modify something on the firewall side (VIP, routing, etc.)?
I want to make sure there is no mail disruption during a failover.
Thanks in advance for your help.
Solved! Go to Solution.
External to Fortimail:
Fortimail to external:
Hello BH
You use a a floating virtual IP. It will automatically move to the secondary on failover.
Hello AEK,
Maybe you'll help me more.
I'm using only two ports in my fortimails, one for the HA heartbeat and the second port for the rest (mgmt and SMTP traffic). What I wanna know is in the HA configuration > interface > virtual IP, Can i use the virtual IP I configured in my firewall and that is the same as my primary's IP add ?
BR,
The VIP configured in your FGT should map to the VIP you configured on your FML HA.
In your case the static IP addresses that you configured on your FMLs will be used for management, while the VIP will be used for the SMTP traffic.
In my case the static IP add configured on my primary is used for management and smtp traffic at the same time, and that static IP add is my VIP.
Primary : port1 (used for management and smtp traffic) 192.168.1.1
VIP : 192.168.1.1
Is this configuration corrected for the HA ? Cause I am using this for my smtp traffic and it's working just fine, my concern is the HA.
BR,
Let's clear up the ambiguity. There are two VIPs, one configured on FGT (let's say FGT_VIP), and one configured in FML HA (let's say FML_VIP).
The FGT_VIP should be mapped to the FML_VIP, not to the FML port1's static IP. This is required in order to keep it reachable on failover.
Maybe I'm bad at explaining, I'm sorry lol.
Lets approach this in another way.
To config active-passive for Fortimail :
My Fortimails interfaces config is as followed :
Question : the virtual IP should be configured on port1 in my case ?
Yes because currently your SMTP traffic is handled by port1.
The FML_VIP should be in the same subnet (192.168.10.0/x) on port1.
And for Fortigate configuration ?
I have to create two firewall policies :
Is that correct ?
External to Fortimail:
Fortimail to external:
| User | Count |
|---|---|
| 2919 | |
| 1452 | |
| 855 | |
| 826 | |
| 455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.