Fortinet black logo

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

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 security {starttls|none}

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.

security

STARTTLS is an extension to plain text communication protocols. It enables a plain text connection to be upgraded to an encrypted (TLS or SSL) connection instead of using a separate port for encrypted communication. Specify this option if you have implemented STARTTLS for your mailserver; otherwise, leave unset or specify none.

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

security:

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

security:

smtp-auth : enable

username : admin

password : *

 

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 security {starttls|none}

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.

security

STARTTLS is an extension to plain text communication protocols. It enables a plain text connection to be upgraded to an encrypted (TLS or SSL) connection instead of using a separate port for encrypted communication. Specify this option if you have implemented STARTTLS for your mailserver; otherwise, leave unset or specify none.

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

security:

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

security:

smtp-auth : enable

username : admin

password : *