Description
This article describes that in certain situations, an email administrator may want to control outbound email relays based on recipient's email address. By default, FortiMail will do an MX lookup based on the email domain of the recipient email address, and then send it to the particular SMTP server.
However, in some cases, an email administrator may want certain emails to be sent out to certain SMTP servers instead.
In this article, the mail routing feature under the advanced MTA control setting will be used to achieve this.
Starting from FortiMail v7.0.0, the advanced MTA feature requires an Advanced Management license to be purchased to be able to enable this feature.
Scope
FortiMail v5.1 and above.
Solution
By default, the advanced MTA control setting feature is hidden. To use this feature, it must be enabled by using the following CLI command:
config system global
set mta-adv-ctrl-status enable
end
After this feature is enabled, the following options will appear in the session profile settings. Four new tabs (Address Rewrite, Mail Routing, Access Control, and DSN) will also appear under Profile -> Session.
Go to Profile -> Session, select the Session profile that is being used, select 'Advanced Control', and create a new 'Mail Routing' profile. The following example will relay email sent to user@fortinet.com to 192.168.1.1: