In 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.Scope
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.
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 globalAfter 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.
set mta-adv-ctrl-status enable
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 email@example.com to 192.168.1.1: