config system : config system mailserver
 
config system mailserver
Use this command to configure an SMTP email server if you want to send notifications by email.
Before you begin:
You must have read-write permission for system settings.
Syntax
config system mailserver
set address <string>
set port <integer>
set smtp-auth {enable|disable}
set username <string>
set password <passwd>
end
address
IP address or FQDN of an SMTP server (such as FortiMail) or email server that the appliance can connect to in order to send alerts and/or generated reports.
port
Listening port number of the server. Usually, SMTP is 25.
smtp-auth
Enable if the SMTP server requires authentication.
username
Username for authentication to the SMTP server.
password
Password for authentication to the SMTP server.
Example
FortiADC-VM # get system mailserver
address :
port : 25
smtp-auth : enable
username :
password : *
 
FortiADC-VM # config system mailserver
FortiADC-VM (mailserver) # set address 192.168.1.125
FortiADC-VM (mailserver) # set username admin
FortiADC-VM (mailserver) # set password strongpass
FortiADC-VM (mailserver) # end
 
FortiADC-VM # get system mailserver
address : 192.168.1.125
port : 25
smtp-auth : enable
username : admin
password : *