Fortinet white logo
Fortinet white 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 interface {string}
    set interface-select-method [auto|sdwan|...]
    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

Default

authenticate

Enable/disable authentication.

option

-

disable

Option

Description

enable

Enable authentication.

disable

Disable authentication.

interface

Specify outgoing interface to reach server.

string

Maximum length: 15

interface-select-method

Specify how to select outgoing interface to reach server.

option

-

auto

Option

Description

auto

Set outgoing interface automatically.

sdwan

Set outgoing interface by SD-WAN or policy routing rules.

specify

Set outgoing interface manually.

password

SMTP server user password for authentication.

password

Not Specified

port

SMTP server port.

integer

Minimum value: 1 Maximum value: 65535

25

reply-to

Reply-To email address.

string

Maximum length: 63

security

Connection security used by the email server.

option

-

none

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

0.0.0.0

source-ip6

SMTP server IPv6 source IP.

ipv6-address

Not Specified

::

ssl-min-proto-version

Minimum supported protocol version for SSL/TLS connections.

option

-

default

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

-

custom

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

-

disable

Option

Description

enable

Enable validation of server certificate.

disable

Disable validation of server certificate.

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 interface {string}
    set interface-select-method [auto|sdwan|...]
    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

Default

authenticate

Enable/disable authentication.

option

-

disable

Option

Description

enable

Enable authentication.

disable

Disable authentication.

interface

Specify outgoing interface to reach server.

string

Maximum length: 15

interface-select-method

Specify how to select outgoing interface to reach server.

option

-

auto

Option

Description

auto

Set outgoing interface automatically.

sdwan

Set outgoing interface by SD-WAN or policy routing rules.

specify

Set outgoing interface manually.

password

SMTP server user password for authentication.

password

Not Specified

port

SMTP server port.

integer

Minimum value: 1 Maximum value: 65535

25

reply-to

Reply-To email address.

string

Maximum length: 63

security

Connection security used by the email server.

option

-

none

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

0.0.0.0

source-ip6

SMTP server IPv6 source IP.

ipv6-address

Not Specified

::

ssl-min-proto-version

Minimum supported protocol version for SSL/TLS connections.

option

-

default

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

-

custom

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

-

disable

Option

Description

enable

Enable validation of server certificate.

disable

Disable validation of server certificate.