Fortinet white logo
Fortinet white logo

CLI Reference

config spamfilter bword

config spamfilter bword

Configure AntiSpam banned word list.

config spamfilter bword
    Description: Configure AntiSpam banned word list.
    edit <id>
        set name {string}
        set comment {var-string}
        config entries
            Description: Spam filter banned word.
            edit <id>
                set status [enable|disable]
                set pattern {string}
                set pattern-type [wildcard|regexp]
                set action [spam|clear]
                set where [subject|body|...]
                set language [western|simch|...]
                set score {integer}
            next
        end
    next
end

config spamfilter bword

Parameter

Description

Type

Size

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

name

Name of table.

string

Maximum length: 35

comment

Optional comments.

var-string

Maximum length: 255

config entries

Parameter

Description

Type

Size

status

Enable/disable status.

option

-

Option

Description

enable

Enable status.

disable

Disable status.

id

Banned word entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

pattern

Pattern for the banned word.

string

Maximum length: 127

pattern-type

Wildcard pattern or regular expression.

option

-

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

action

Mark spam or good.

option

-

Option

Description

spam

Mark as spam email.

clear

Mark as good email.

where

Component of the email to be scanned.

option

-

Option

Description

subject

Banned word in email subject.

body

Banned word in email body.

all

Banned word in both subject and body.

language

Language for the banned word.

option

-

Option

Description

western

Western.

simch

Simplified Chinese.

trach

Traditional Chinese.

japanese

Japanese.

korean

Korean.

french

French.

thai

Thai.

spanish

Spanish.

score

Score value.

integer

Minimum value: 1 Maximum value: 99999

config spamfilter bword

config spamfilter bword

Configure AntiSpam banned word list.

config spamfilter bword
    Description: Configure AntiSpam banned word list.
    edit <id>
        set name {string}
        set comment {var-string}
        config entries
            Description: Spam filter banned word.
            edit <id>
                set status [enable|disable]
                set pattern {string}
                set pattern-type [wildcard|regexp]
                set action [spam|clear]
                set where [subject|body|...]
                set language [western|simch|...]
                set score {integer}
            next
        end
    next
end

config spamfilter bword

Parameter

Description

Type

Size

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

name

Name of table.

string

Maximum length: 35

comment

Optional comments.

var-string

Maximum length: 255

config entries

Parameter

Description

Type

Size

status

Enable/disable status.

option

-

Option

Description

enable

Enable status.

disable

Disable status.

id

Banned word entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

pattern

Pattern for the banned word.

string

Maximum length: 127

pattern-type

Wildcard pattern or regular expression.

option

-

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

action

Mark spam or good.

option

-

Option

Description

spam

Mark as spam email.

clear

Mark as good email.

where

Component of the email to be scanned.

option

-

Option

Description

subject

Banned word in email subject.

body

Banned word in email body.

all

Banned word in both subject and body.

language

Language for the banned word.

option

-

Option

Description

western

Western.

simch

Simplified Chinese.

trach

Traditional Chinese.

japanese

Japanese.

korean

Korean.

french

French.

thai

Thai.

spanish

Spanish.

score

Score value.

integer

Minimum value: 1 Maximum value: 99999