User Guide
48 Kaspersky Anti-Virus® for Sendmail with Milter API
• If the sendmail.mc file does not exist or the value of the SENDMAIL_CF
environment variable is sendmail.cf or the binary m4 file has not been
found, the sendmail.cf file will serve as the configuration file.
• If the value of the SENDMAIL_MC environment parameter is
sendmail.mc, the application will use sendmail.mc as the mail system
configuration file. The INPUT_MAIL_FILTER directive that defines the use
of kavmilter as the mail filter is added to the configuration file.
• If both of these configuration files exist and the environment variable does
not strictly specify the use of one of these files, the sendmail.mc file is
used as the configuration file.
If you are running OpenBSD, the Sendmail default configuration file is
localhost.cf. Kaspersky Anti-Virus makes changes to this configuration file.
Note that if you work under OpenBSD and run Sendmail using another
configuration file (–С option) or run Sendmail using command line
options or only –bd option, Sendmail will be started using sendmail.cf
as its configuration file.
In order to define strictly the Sendmail configuration file, use the following
command line options:
–sendmail-cf <path_to_file> – specify the different sendmail.cf file to add
and delete the modification concerned with using kavmilter filter or
checking it's status;
–sendmail-mc < path_to_file > – specify the different sendmail.mc file to
add or delete the modification concerned with using kavmilter filter or
checking it's status.
Two command line options above are used only with –add-filter, –del-filter and
–check-filter options.
For example, to use different configuration file sendmail.cf and add into it the
modification concerned with using kavmilter filter enter the following in the
command line:
# –sendmail-cf <path_to_sendmail.cf> –add-filter
If the specified configuration file is not found, the application will return the error
code and add, delete or check operation will be canceled.
If you specified both –sendmail-cf and –sendmail-mc options, the application
will use mc-file.










