User Guide

28 Kaspersky Anti-Virus® for Sendmail with Milter API
4.2. Creating groups for message
processing
A group is a set of processing rules to be applied to certain messages. Each
group contains a list of senders and / or recipients defining which messages are
processed according to the group rules.
When a message is received, the application searches through the list of
addresses for each group. If a matching combination of the sender/recipient
addresses is found, the rules defined for this group will be applied to the email
message. If the sender/recipient addresses belong to several groups, the
application will use the group with the highest priority.
Each group’s settings are specified in a separate file with a .conf extension.
These files are stored in /etc/kav/5.6/kavmilter/group.d/ directory for
Linux / OpenBSD distributions and in /usr/local/etc/kav/5.6/kavmilter/group.d/
directory for FreeBSD distributions. This is the default location for the
default.conf file describing the Default group; these group rules are applied to
any messages which do not belong to other groups.
Parameters in group configuration file are located in the following sections:
[group.definition] contains parameters defining the group name, the list
of senders and recipients and the group priority;
[group.settings] contains parameters defining the scan policy and
whether the application should append additional information to each
message;
[group.actions] contains parameters defining the processing rules for
detected objects according to their status;
[group.filter] contains parameters defining the filtering rules for mail
objects;
[group.notifications] contains parameters defining notifications rules
pertaining to discovered objects with a certain status;
[group.backup] – contains parameters defining messages backup rules.
If any parameter of a group is not defined, the parameter’s default value from the
default.conf file will be used.
To create a new group:
1. Create a new .conf file in the group.d directory.