Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

alertemail

Use this command to configure alert email settings for your FortiAnalyzer unit.

All variables are required when authentication is enabled.

Syntax

config system alertemail

set authentication {enable | disable}

set fromaddress <email-address_string>

set fromname <string>

set smtppassword <passwd>

set smtpport <integer>

set smtpserver {<ipv4_address>|<fqdn_string>}

set smtpuser <username>

end

Variable

Description

authentication {enable | disable}

Enable/disable alert email authentication (default = enable).

fromaddress <email-address_string>

The email address the alert message is from. This is a required variable.

fromname <string>

The SMTP name associated with the email address. Enclose the name in quotes if it contains spaces.

smtppassword <passwd>

Set the SMTP server password (character limit = 39).

smtpport <integer>

The SMTP server port (1 - 65535, default = 25).

smtpserver {<ipv4_address>|<fqdn_string>}

The SMTP server address, either a DNS resolvable host name or an IPv4 address.

smtpuser <username>

Set the SMTP server username (character limit= 63).

Example

Here is an example of configuring alertemail. Enable authentication, the alert is set in Mr. Customer’s name and from his email address, the SMTP server port is the default port(25), and the SMTP server is at IPv4 address of 192.168.10.10.

config system alertemail

set authentication enable

set fromaddress customer@example.com

set fromname “Ms. Customer”

set smtpport 25

set smtpserver 192.168.10.10

end

alertemail

Use this command to configure alert email settings for your FortiAnalyzer unit.

All variables are required when authentication is enabled.

Syntax

config system alertemail

set authentication {enable | disable}

set fromaddress <email-address_string>

set fromname <string>

set smtppassword <passwd>

set smtpport <integer>

set smtpserver {<ipv4_address>|<fqdn_string>}

set smtpuser <username>

end

Variable

Description

authentication {enable | disable}

Enable/disable alert email authentication (default = enable).

fromaddress <email-address_string>

The email address the alert message is from. This is a required variable.

fromname <string>

The SMTP name associated with the email address. Enclose the name in quotes if it contains spaces.

smtppassword <passwd>

Set the SMTP server password (character limit = 39).

smtpport <integer>

The SMTP server port (1 - 65535, default = 25).

smtpserver {<ipv4_address>|<fqdn_string>}

The SMTP server address, either a DNS resolvable host name or an IPv4 address.

smtpuser <username>

Set the SMTP server username (character limit= 63).

Example

Here is an example of configuring alertemail. Enable authentication, the alert is set in Mr. Customer’s name and from his email address, the SMTP server port is the default port(25), and the SMTP server is at IPv4 address of 192.168.10.10.

config system alertemail

set authentication enable

set fromaddress customer@example.com

set fromname “Ms. Customer”

set smtpport 25

set smtpserver 192.168.10.10

end