30
Kaspersky Anti-Virus
®
for Sendmail with Milter API
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
[kavmilter.notifications]
section.
To enable sending notifications, configure the application as follows:
[kavmilter.notifications]
EnableNotifications=on
NotifySender=infected
NotifyRecipients=infected
NotifyAdmin=infected
AdminAddresses=admin@localhost
MessageDir=/var/db/kav/5.0/kavmilter/templates/
MessageSubject="Anti-virus notification message"
You can customize the format of notifications. For more detail about
this, see section 6.9 on page 44.
Below, we consider several examples of how to configure notifications.
Task: Notify the recipient and administrator about a rejected message
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.
To implement this task, make the following configuration changes:
[kavmilter.global]
ScanPolicy=combined
[kavmilter.actions]
DefaultAction=reject
[kavmilter.notifications]
EnableNotifications=on
NotifySender=infected
NotifyRecipients=infected
NotifyAdmin=infected
AdminAddresses=admin@localhost