User Guide

40 Kaspersky Anti-Virus® for Sendmail with Milter API
NotifyAdmin=all
AdminAddresses=admin@localhost
UseCustomTemplates=on
AdminSubject=Anti-virus notification message
6.4. Sending notifications to
senders, recipients, and
administrator
You can set Kaspersky Anti-Virus to send notifications upon virus detection.
Recipient and sender addresses for sending notifications are inherited from the
original e-mail message.
The administrator addresses must be specified for the AdminAddresses
parameter of the [group.notifications] section.
To enable sending notifications, set the following parameters in the default.conf
configuration file:
[group.notifications]
EnableNotifications=on
NotifySender=infected
NotifyRecipients=infected
NotifyAdmin=infected
AdminAddresses=admin@localhost
MessageDir=/var/db/kav/5.6/kavmilter/templates/
MessageSubject=Anti-virus notification message
You can customize the format of notifications. For more detail about
this, see section 7.8 on page 55.
Below, we consider several examples of how to configure notifications.
Task
: Notify the recipient and administrator about rejected messages
containing a virus (action for infected objects – reject). The sender must
receive an error code about an undeliverable mail as if it was sent by
the mail agent.