mailsetting relay-host-list
Use this command to configure the FortiMail unit’s built-in MTA’s connection to an SMTP relay, if any, to which the FortiMail unit will relay outgoing email. You can configure up to eight relays.
This is typically provided by your Internet service provider (ISP), but could be a mail relay on your internal network.
If the SMTP relay’s domain name resolves to more than one IP address, for each SMTP session, the FortiMail unit will randomly select one of the IP addresses from the result of the DNS query, effectively load balancing between the SMTP relays.
If you do not configure a relay server, for outgoing email delivered by the built-in MTA, the FortiMail unit will instead query the DNS server for the MX record of the mail domain in the recipient’s email address (RCPT TO:
), and relay the email directly to that mail gateway.
You can also use MX records and IP groups as relay types.
For details, see the FortiMail Administration Guide.
This option will be ignored for email that matches an antispam or content profile where you have enabled alternate-host {<relay_fqdn> | <relay_ipv4>}. |
Syntax
config mailsetting relay-host-list
edit <relay-host-name>
set auth-password <password_str>
set auth-status {enable | disable}
set auth-type {auto | plain | login | digest-md5 | cram‑md5}
set host-name
set host-port
set ip-group-profile
set relay-type {host | ip-group | mx-lookup}
set use-smtps {enable | disable}
end
Variable |
Description |
Default |
Enter the host name or IP address of the relay server. |
|
|
If auth-status {enable | disable} is |
|
|
Enable if the SMTP relay requires authentication using the SMTP |
disable |
|
If auth-status {enable | disable} is |
auto |
|
If auth-status {enable | disable} is |
|
|
Enter the relay host ip or host name. |
|
|
Enter the host port number. |
25 |
|
Enter an IP group profile. |
|
|
Enter the domain name for MX record lookup. |
|
|
Enter the SMTP relay type: host, ip-group, or mx-lookup. |
host |
|
Enable to initiate SSL- and TLS-secured connections to the SMTP relay if it supports SSL/TLS. When disabled, SMTP connections from the FortiMail unit’s built-in MTA or proxy to the relay will occur as clear text, unencrypted. |
disable |
Related topics
mailsetting storage central-quarantine