Fortinet white logo
Fortinet white logo

CLI Reference

config emailfilter mheader

config emailfilter mheader

Configure AntiSpam MIME header.

config emailfilter mheader
    Description: Configure AntiSpam MIME header.
    edit <id>
        set comment {var-string}
        config entries
            Description: Spam filter mime header content.
            edit <id>
                set status [enable|disable]
                set id {integer}
                set fieldname {string}
                set fieldbody {string}
                set pattern-type [wildcard|regexp]
                set action [spam|clear]
            next
        end
        set id {integer}
        set name {string}
    next
end

config emailfilter mheader

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

Mime header entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

fieldname

Pattern for header field name.

string

Not Specified

fieldbody

Pattern for the header field body.

string

Not Specified

pattern-type

Wildcard pattern or regular expression.

option

-

wildcard

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

action

Mark spam or good.

option

-

spam

Option

Description

spam

Mark as spam email.

clear

Mark as good email.

config emailfilter mheader

config emailfilter mheader

Configure AntiSpam MIME header.

config emailfilter mheader
    Description: Configure AntiSpam MIME header.
    edit <id>
        set comment {var-string}
        config entries
            Description: Spam filter mime header content.
            edit <id>
                set status [enable|disable]
                set id {integer}
                set fieldname {string}
                set fieldbody {string}
                set pattern-type [wildcard|regexp]
                set action [spam|clear]
            next
        end
        set id {integer}
        set name {string}
    next
end

config emailfilter mheader

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

Mime header entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

fieldname

Pattern for header field name.

string

Not Specified

fieldbody

Pattern for the header field body.

string

Not Specified

pattern-type

Wildcard pattern or regular expression.

option

-

wildcard

Option

Description

wildcard

Wildcard pattern.

regexp

Perl regular expression.

action

Mark spam or good.

option

-

spam

Option

Description

spam

Mark as spam email.

clear

Mark as good email.