Fortinet white logo
Fortinet white logo

CLI Reference

config emailfilter block-allow-list

config emailfilter block-allow-list

Configure anti-spam block/allow list.

config emailfilter block-allow-list
    Description: Configure anti-spam block/allow list.
    edit <id>
        set comment {var-string}
        config entries
            Description: Anti-spam block/allow entries.
            edit <id>
                set action [reject|spam|...]
                set addr-type [ipv4|ipv6]
                set ip4-subnet {ipv4-classnet}
                set ip6-subnet {ipv6-network}
                set pattern {string}
                set pattern-type [wildcard|regexp]
                set status [enable|disable]
                set type [ip|email-to|...]
            next
        end
        set fabric-force-sync [enable|disable]
        set fabric-object [enable|disable]
        set fabric-object-source [member|local|...]
        set name {string}
        set uuid {uuid}
    next
end

config emailfilter block-allow-list

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Maximum length: 255

fabric-force-sync *

Enable/disable forced synchronization of configuration objects from the root FortiGate unit to the downstream devices. Configuration conflict check is skipped.

option

-

disable

Option

Description

enable

Enable forced synchronization of configuration objects from the root FortiGate unit to the downstream devices.

disable

Disable forced synchronization of configuration objects from the root FortiGate unit to the downstream devices.

fabric-object *

Security Fabric global object setting.

option

-

disable

Option

Description

enable

Object is set as a security fabric-wide global object.

disable

Object is local to this security fabric member.

fabric-object-source *

Source of truth for fabric object.

option

-

root

Option

Description

member

Source of truth for this object is a non-root member of fabric.

local

Source of truth for this object is this security fabric member.

root

Source of truth for this object is the root of the fabric.

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

name

Name of table.

string

Maximum length: 63

uuid *

Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

uuid

Not Specified

00000000-0000-0000-0000-000000000000

* This parameter may not exist in some models.

config entries

Parameter

Description

Type

Size

Default

action

Reject, mark as spam or good email.

option

-

spam

Option

Description

reject

Reject the connection.

spam

Mark as spam email.

clear

Mark as good email.

addr-type

IP address type.

option

-

ipv4

Option

Description

ipv4

IPv4 Address type.

ipv6

IPv6 Address type.

id

Entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

ip4-subnet

IPv4 network address/subnet mask bits.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

ip6-subnet

IPv6 network address/subnet mask bits.

ipv6-network

Not Specified

::/128

pattern

Pattern to match.

string

Maximum length: 127

pattern-type

Wildcard pattern or regular expression.

option

-

wildcard

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

status

Enable/disable status.

option

-

enable

Option

Description

enable

Enable status.

disable

Disable status.

type

Entry type.

option

-

ip

Option

Description

ip

By IP address.

email-to

By email recipient.

email-from

By email sender.

subject

By email subject.

config emailfilter block-allow-list

config emailfilter block-allow-list

Configure anti-spam block/allow list.

config emailfilter block-allow-list
    Description: Configure anti-spam block/allow list.
    edit <id>
        set comment {var-string}
        config entries
            Description: Anti-spam block/allow entries.
            edit <id>
                set action [reject|spam|...]
                set addr-type [ipv4|ipv6]
                set ip4-subnet {ipv4-classnet}
                set ip6-subnet {ipv6-network}
                set pattern {string}
                set pattern-type [wildcard|regexp]
                set status [enable|disable]
                set type [ip|email-to|...]
            next
        end
        set fabric-force-sync [enable|disable]
        set fabric-object [enable|disable]
        set fabric-object-source [member|local|...]
        set name {string}
        set uuid {uuid}
    next
end

config emailfilter block-allow-list

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Maximum length: 255

fabric-force-sync *

Enable/disable forced synchronization of configuration objects from the root FortiGate unit to the downstream devices. Configuration conflict check is skipped.

option

-

disable

Option

Description

enable

Enable forced synchronization of configuration objects from the root FortiGate unit to the downstream devices.

disable

Disable forced synchronization of configuration objects from the root FortiGate unit to the downstream devices.

fabric-object *

Security Fabric global object setting.

option

-

disable

Option

Description

enable

Object is set as a security fabric-wide global object.

disable

Object is local to this security fabric member.

fabric-object-source *

Source of truth for fabric object.

option

-

root

Option

Description

member

Source of truth for this object is a non-root member of fabric.

local

Source of truth for this object is this security fabric member.

root

Source of truth for this object is the root of the fabric.

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

name

Name of table.

string

Maximum length: 63

uuid *

Universally Unique Identifier (UUID; automatically assigned but can be manually reset).

uuid

Not Specified

00000000-0000-0000-0000-000000000000

* This parameter may not exist in some models.

config entries

Parameter

Description

Type

Size

Default

action

Reject, mark as spam or good email.

option

-

spam

Option

Description

reject

Reject the connection.

spam

Mark as spam email.

clear

Mark as good email.

addr-type

IP address type.

option

-

ipv4

Option

Description

ipv4

IPv4 Address type.

ipv6

IPv6 Address type.

id

Entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

ip4-subnet

IPv4 network address/subnet mask bits.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

ip6-subnet

IPv6 network address/subnet mask bits.

ipv6-network

Not Specified

::/128

pattern

Pattern to match.

string

Maximum length: 127

pattern-type

Wildcard pattern or regular expression.

option

-

wildcard

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

status

Enable/disable status.

option

-

enable

Option

Description

enable

Enable status.

disable

Disable status.

type

Entry type.

option

-

ip

Option

Description

ip

By IP address.

email-to

By email recipient.

email-from

By email sender.

subject

By email subject.