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 type {option}

set reply-to {string}

set server {string}

set port {integer}

set source-ip {ipv4-address}

set source-ip6 {ipv6-address}

set authenticate [enable|disable]

set validate-server [enable|disable]

set username {string}

set password {password}

set security [none|starttls|...]

set ssl-min-proto-version [default|SSLv3|...]

set interface-select-method [auto|sdwan|...]

set interface {string}

end

config system email-server

Parameter

Description

Type

Size

Default

type

Use FortiGuard Message service or custom email server.

option

-

custom

Option

Description

custom

Use custom email server.

reply-to

Reply-To email address.

string

Maximum length: 63

server

SMTP server IP address or hostname.

string

Maximum length: 63

port

SMTP server port.

integer

Minimum value: 1 Maximum value: 65535

25

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

::

authenticate

Enable/disable authentication.

option

-

disable

Option

Description

enable

Enable authentication.

disable

Disable authentication.

validate-server

Enable/disable validation of server certificate.

option

-

disable

Option

Description

enable

Enable validation of server certificate.

disable

Disable validation of server certificate.

username

SMTP server user name for authentication.

string

Maximum length: 63

password

SMTP server user password for authentication.

password

Not Specified

security

Connection security used by the email server.

option

-

none

Option

Description

none

None.

starttls

STARTTLS.

smtps

SSL/TLS.

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.

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.

interface

Specify outgoing interface to reach server.

string

Maximum length: 15

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 type {option}

set reply-to {string}

set server {string}

set port {integer}

set source-ip {ipv4-address}

set source-ip6 {ipv6-address}

set authenticate [enable|disable]

set validate-server [enable|disable]

set username {string}

set password {password}

set security [none|starttls|...]

set ssl-min-proto-version [default|SSLv3|...]

set interface-select-method [auto|sdwan|...]

set interface {string}

end

config system email-server

Parameter

Description

Type

Size

Default

type

Use FortiGuard Message service or custom email server.

option

-

custom

Option

Description

custom

Use custom email server.

reply-to

Reply-To email address.

string

Maximum length: 63

server

SMTP server IP address or hostname.

string

Maximum length: 63

port

SMTP server port.

integer

Minimum value: 1 Maximum value: 65535

25

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

::

authenticate

Enable/disable authentication.

option

-

disable

Option

Description

enable

Enable authentication.

disable

Disable authentication.

validate-server

Enable/disable validation of server certificate.

option

-

disable

Option

Description

enable

Enable validation of server certificate.

disable

Disable validation of server certificate.

username

SMTP server user name for authentication.

string

Maximum length: 63

password

SMTP server user password for authentication.

password

Not Specified

security

Connection security used by the email server.

option

-

none

Option

Description

none

None.

starttls

STARTTLS.

smtps

SSL/TLS.

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.

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.

interface

Specify outgoing interface to reach server.

string

Maximum length: 15