FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
ESCHAN_FTNT
Staff
Staff
Article Id 198177
Description
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.

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.

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, 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:

eschan_FD38526_tn_FD38526.JPG

Contributors