DescriptionIn certain situations, an email administrator may want to control outbound email relay based on recipient email address. By default, FortiMail will do a MX lookup based on the email domain of the recipient email address, then send to the particular SMTP server.
However, in some cases, an email administrator may want certain email to send out to certain SMTP server instead. In this article, the mail routing feature under advanced MTA control setting will be used to achieve this.
ScopeFortiMail v5.1 and above.
SolutionBy 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, click on "Advanced Control" and create new "Mail Routing" profile. The following example will relay email sent to user@fortinet.com to 192.168.1.1: