To create a new rule:
# /opt/kaspersky/klms/bin/klms-control --create-rule <
rule name>
# /opt/kaspersky/klms/bin/klms-control \
--set-rule-priority <
rule ID> --before <
rule ID>
The value can be set using any natural number.
# /opt/kaspersky/klms/bin/klms-control \
--get-rule-settings <rule ID> -f <rule settings file name>
or
--get-rule-settings <rule name> -n -f <rule settings file name>
The <rule name>
should be enclosed in double quotes if it contains blanks.
belongingCriteria>
section, specify the addresses of the sender and recipient in the <sender>
and <recipient>
settings, respectively.If you need to add several email addresses of senders and recipients, each new email address of the sender or recipient must be specified in a separate <item>
section in a new line of the settings file.
Example:
|
At least one of the sender, recipient
values must be specified. If the description of the rule does not contain a sender
or recipient
value, the application applies the rule with the next highest priority.
You can use the symbols "*" and "?" to create an address mask, and regular expressions beginning with the prefix "re:".
Regular expressions are not case-sensitive.
<ScanSettings>
section, specify 1
as the value of the <active
> setting to activate the rule.<ScanSettings>
section use one of the following values for the <ruleAction>
setting:Scan
, if you want the application to process messages according to the configured scan settings;Skip
(skip without scanning), if you want the program to process messages according to this rule in the same way it does according to the rule of the global white list of addresses.Reject
(reject without scanning), if you want the application to process messages according to this rule in the same way it does according to the rule of the global black list of addresses.If the values of these settings have not been configured for a rule, the default settings are used.
# /opt/kaspersky/klms/bin/klms-control \
--set-rule-settings <rule ID> -f <rule settings file name>
or
--set-rule-settings <rule name> -n -f <rule settings file name>
The <rule name>
should be enclosed in double quotes if it contains blanks.
You can view the list of created rules later.
Page top