Fortinet black logo

CLI Reference

config system email-server

config system email-server

Configure the email server used by the FortiGate various things. For example, for sending email messages to users to support user authentication features.

config system email-server
    Description: Configure the email server used by the FortiGate various things. For example, for sending email messages to users to support user authentication features.
    set authenticate [enable|disable]
    set password {password}
    set port {integer}
    set reply-to {string}
    set security [none|starttls|...]
    set server {string}
    set source-ip {ipv4-address}
    set source-ip6 {ipv6-address}
    set ssl-min-proto-version [default|SSLv3|...]
    set type {option}
    set username {string}
    set validate-server [enable|disable]
end

config system email-server

Parameter

Description

Type

Size

authenticate

Enable/disable authentication.

option

-

Option

Description

enable

Enable authentication.

disable

Disable authentication.

password

SMTP server user password for authentication.

password

Not Specified

port

SMTP server port.

integer

Minimum value: 1 Maximum value: 65535

reply-to

Reply-To email address.

string

Maximum length: 63

security

Connection security used by the email server.

option

-

Option

Description

none

None.

starttls

STARTTLS.

smtps

SSL/TLS.

server

SMTP server IP address or hostname.

string

Maximum length: 63

source-ip

SMTP server IPv4 source IP.

ipv4-address

Not Specified

source-ip6

SMTP server IPv6 source IP.

ipv6-address

Not Specified

ssl-min-proto-version

Minimum supported protocol version for SSL/TLS connections.

option

-

Option

Description

default

Follow system global setting.

SSLv3

SSLv3.

TLSv1

TLSv1.

TLSv1-1

TLSv1.1.

TLSv1-2

TLSv1.2.

type

Use FortiGuard Message service or custom email server.

option

-

Option

Description

custom

Use custom email server.

username

SMTP server user name for authentication.

string

Maximum length: 63

validate-server

Enable/disable validation of server certificate.

option

-

Option

Description

enable

Enable validation of server certificate.

disable

Disable validation of server certificate.

config system email-server

Configure the email server used by the FortiGate various things. For example, for sending email messages to users to support user authentication features.

config system email-server
    Description: Configure the email server used by the FortiGate various things. For example, for sending email messages to users to support user authentication features.
    set authenticate [enable|disable]
    set password {password}
    set port {integer}
    set reply-to {string}
    set security [none|starttls|...]
    set server {string}
    set source-ip {ipv4-address}
    set source-ip6 {ipv6-address}
    set ssl-min-proto-version [default|SSLv3|...]
    set type {option}
    set username {string}
    set validate-server [enable|disable]
end

config system email-server

Parameter

Description

Type

Size

authenticate

Enable/disable authentication.

option

-

Option

Description

enable

Enable authentication.

disable

Disable authentication.

password

SMTP server user password for authentication.

password

Not Specified

port

SMTP server port.

integer

Minimum value: 1 Maximum value: 65535

reply-to

Reply-To email address.

string

Maximum length: 63

security

Connection security used by the email server.

option

-

Option

Description

none

None.

starttls

STARTTLS.

smtps

SSL/TLS.

server

SMTP server IP address or hostname.

string

Maximum length: 63

source-ip

SMTP server IPv4 source IP.

ipv4-address

Not Specified

source-ip6

SMTP server IPv6 source IP.

ipv6-address

Not Specified

ssl-min-proto-version

Minimum supported protocol version for SSL/TLS connections.

option

-

Option

Description

default

Follow system global setting.

SSLv3

SSLv3.

TLSv1

TLSv1.

TLSv1-1

TLSv1.1.

TLSv1-2

TLSv1.2.

type

Use FortiGuard Message service or custom email server.

option

-

Option

Description

custom

Use custom email server.

username

SMTP server user name for authentication.

string

Maximum length: 63

validate-server

Enable/disable validation of server certificate.

option

-

Option

Description

enable

Enable validation of server certificate.

disable

Disable validation of server certificate.