system : email-server
 
email-server
Use this command to configure the FortiGate unit to access an SMTP server to send alert emails. This command is global in scope.
Syntax
config system email-server
set authenticate {enable | disable}
set password <password_str>
set port <port_integer>
set reply-to <reply-to_str>
set security {none | smtps | starttls}
set server {<name‑str> | <address_ipv4>}
set source-ip <address_ipv4>
set source-ip6 <address_ipv6>
set username <username_str>
end
Variable
Description
Default
authenticate {enable | disable}
Enable SMTP authentication if the FortiGate unit is required to authenticate before using the SMTP server.
This field is accessible only if type is custom and server is defined.
disable
password <password_str>
Enter the password that the FortiGate unit needs to access the SMTP server.
This field is accessible only if type is custom, authenticate is enabled and server is defined.
No default.
port <port_integer>
Change the TCP port number that the FortiGate unit uses to connect to the SMTP server. The standard SMTP port is 25. You can change the port number if the SMTP server has been configured to use a different port.
25
reply-to <reply-to_str>
Optionally, specify the reply-to email address.
No default.
security {none | smtps | starttls}
Select the security profile to use for email.
none
server {<name‑str> | <address_ipv4>}
Enter the name of the SMTP server, in the format smtp.domain.com, to which the FortiGate unit should send email. Alternately, the IP address of the SMTP server can be entered. The SMTP server can be located on any network connected to the FortiGate unit.
No default.
source-ip <address_ipv4>
Enter the SMTP server source IPv4 address.
No default.
source-ip6 <address_ipv6>
Enter the SMTP server source IPv6 address.
No default.
username <username_str>
Enter the user name for the SMTP server that the FortiGate unit uses to send alert emails.
This variable is accessible only if authenticate is enabled and server is defined.
No default.