CONFIG MAILFILTERING RULE INSERT

Level

contentfilter+modify

History

Appears in 9 0 0

Description

Insert new rule at given line or Insert at the end if no ruleid is define

Usage

index=<profile_idx> [ruleid=<digit>] state=on|off action=pass|block from=<sender> to=<recipient> [comment=<string>]
Insert at the end if no ruleid is define
state : enable or disable the rule
index : profile number
ruleid : rule line number
action : action to apply
from : address mail of the sender
to : address mail of the recipient
comment : comment for the rule

Returns

Error code

Remark

ruleid : insert a rule before the line index 'ruleid'

Example

CONFIG MAILFILTERING RULE INSERT index=0 ruleid=3 action=pass from=*@stormshield eu to=* comment="Pass all mail from STORMSHIELD"
CONFIG MAILFILTERING RULE INSERT index=0 ruleid=3 action=block from=*@*spam com to=*