FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
aaborehab
Staff
Staff
Article Id 246257
Description

This article describes how to use the IP pool in several scenarios. 

Scope

FortiMail v7.0 and v7.2.

Solution

IP pools are used to define a range of IP addresses that can be used as source or destination IPs. 

 

IP pool can be used in 3 different locations and each of them has different behavior:

 

  1. IP pool applied under IP policy: in the IP policy, the IP pool will be used as the originating IP when sending emails to external users or to the internal SMTP server of protected domains. It will NOT be used in receiving.

 

 

aaborehab_0-1676632242605.png

 

  1. IP pool applied under Domain settings: via the GUI under Domain & user -> Domain -> Choose a domain and select Edit -> Advanced setting -> Other -> IP pool. Here it is possible to choose the directions of the IP pool as follows:

 

Delivery: the IP pool will be used as the originating IP when delivering emails to external, but it will NOT be used as the originating IP when delivering to the internal SMTP server.

 

Receiving: the IP pool will be used as the destination IP for the incoming traffic. 

 

Both: Receiving & Delivery.

 

aaborehab_1-1676632242609.png

 

  1. IP pool applied under Delivery Access Control Policy: the IP pool here will be used as the originating IP when delivering emails externally and to the internal SMTP server of protected domains.

    It will NOT be used in receiving. It is similar to the IP pool applied under the IP policy, however here it is possible to have more control by specifying the sender and recipient by domain names. The IP policy is based on IP.

 

aaborehab_2-1676632242611.png

 

Note 1: the Delivery Access control policy has priority over the IP policy, so if the IP pool is applied in both access control & IP policy, only the one in the access control policy will be applied.

 

Note 2: when the email hits the delivery access control policy, the logs will show only the receiving access control in the policy ID. The matched Delivery access control policy will not be visible. In the policy ID only Receiving access control, IP policy: Recipient policy will be shown as following in the logs:

 

aaborehab_3-1676632242612.png

 

Note 3: After  7.4.0 Added ACL delivery ID to event logs.

 

Note 4: before v7.0.1 GA, the IP pool will be ignored when the sender and recipient are protected domain addresses. Starting from v7.0.1 GA, the IP pool will be used and a new CLI command was introduced to have more control on it:

 

config system mailserver
    set ip-pool-direction [ all | exclude-internal-to-internal ] (default value is all)
end


All: IP pool will be used for all emails -> 7.0.1 behavior.

exclude-internal-to-internal: IP pool will not be used for emails in between protected domains -> pre-7.0.1 behavior.