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 status [enable|disable]
                set id {integer}
                set type [ip|email]
                set action [reject|spam|...]
                set addr-type [ipv4|ipv6]
                set ip4-subnet {ipv4-classnet}
                set ip6-subnet {ipv6-network}
                set pattern-type [wildcard|regexp]
                set email-pattern {string}
            next
        end
        set id {integer}
        set name {string}
    next
end

config emailfilter block-allow-list

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Not Specified

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

name

Name of table.

string

Not Specified

config entries

Parameter

Description

Type

Size

Default

status

Enable/disable status.

option

-

enable

Option

Description

enable

Enable status.

disable

Disable status.

id

Entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

type

Entry type.

option

-

ip

Option

Description

ip

By IP address.

email

By email address.

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.

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-type

Wildcard pattern or regular expression.

option

-

wildcard

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

email-pattern

Email address pattern.

string

Not Specified

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 status [enable|disable]
                set id {integer}
                set type [ip|email]
                set action [reject|spam|...]
                set addr-type [ipv4|ipv6]
                set ip4-subnet {ipv4-classnet}
                set ip6-subnet {ipv6-network}
                set pattern-type [wildcard|regexp]
                set email-pattern {string}
            next
        end
        set id {integer}
        set name {string}
    next
end

config emailfilter block-allow-list

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Not Specified

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

name

Name of table.

string

Not Specified

config entries

Parameter

Description

Type

Size

Default

status

Enable/disable status.

option

-

enable

Option

Description

enable

Enable status.

disable

Disable status.

id

Entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

type

Entry type.

option

-

ip

Option

Description

ip

By IP address.

email

By email address.

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.

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-type

Wildcard pattern or regular expression.

option

-

wildcard

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

email-pattern

Email address pattern.

string

Not Specified