User Guide
Typical deployment scenarios 13
Kaspersky Anti-Virus processes incoming and outgoing mail as follows:
1. Email traffic forwarded from other servers or from users arrives at
Sendmail.
2. The mail system then forwards messages to Kaspersky Anti-Virus
through Milter API for anti-virus processing.
3. Kaspersky Anti-Virus scans and handles email messages and,
depending on the settings, sends them back through Milter API to the
mail system. The anti-virus application can generate and send
notifications using an external mail agent.
4. The mail system then routes mail traffic to either external mail servers
or mailboxes of local users.
During the installation on the same server with Sendmail, Kaspersky Anti-Virus
automatically makes the necessary changes to its own configuration and
configuration of Sendmail. If you want to specify custom parameters of the
socket to be used for interaction between Sendmail and Kaspersky Anti-Virus,
you will need to make the following changes:
• If you use sendmail.cf, add the following lines to the file:
#kav-begin: KAVMilter
O InputMailFilters=KAVMilter
O Milter.macros.connect=j, _, {daemon_name},
{if_name}, {if_addr}
O Milter.macros.helo={tls_version}, {cipher},
{cipher_bits}, {cert_subject}, {cert_issuer}
O Milter.macros.envfrom=i, {auth_type}, {auth_authen},
{auth_ssf}, {auth_author}, {mail_mailer}, {mail_host},
{mail_addr}
O Milter.macros.envrcpt={rcpt_mailer}, {rcpt_host},
{rcpt_addr}
XKAVMilter,
S=inet:<port>@<localhost>,F=T,T=S:10s;R:5m;E:5m
#kav-end
where <localhost> is the name or IP address of the local host; the
following values are possible: localhost, 127.0.0.1, IP address of the
server
<port> is a network socket port
For this configuration, it is recommended to use local unix socket. In order
to implement it, add the following strings to the sendmail.cf file:
#kav-begin: KAVMilter










