The file consists of zero or more lines.
Names are case sensitive; valid ones are shown below, divided into categories. The format of values depends on the type associated with their name.
Leading and trailing spaces, as well as spaces around "=" are removed. Backslashes ("\") can be used to wrap multiple physical lines into a single logical one, even comments.
New definitions of an already defined array append new values to the existing ones. For example, the following forms are equivalent:
reject Virus.Name.A \ Virus.Name.B \ Virus.Name.C
and
reject Virus.Name.A reject Virus.Name.B reject Virus.Name.C
Although the default is false, the default avfilter.conf.dist sets it to true. The latter file is copied to avfilter.conf unless one exists.
NOTE: Changing this parameters has no effect on running processes. It is necessary to restart the master filter to change mode of operations.
If this option is set, avfilter renames any existing field having the same name by prepending "Old-". That way, downstream filters can reliably learn if a message is infected by checking for this field existence.
These options are divided into three categories, "engine", "load", and "scan". Scan options make up a flag which is passed to LibClamAV on every message scan request, so it is enough to reload avfilter configuration to enable new behavior --but mind the WARNING below. Engine and load options are used during the initialization, so a full reload of avfilter data is necessary for a change to be effective.
WARNING: ClamAV suggest some default values for the options tagged "load" and "scan". If no "scan" option is set, then the suggested default set is applied. Likewise for "load". Thus, if you want to alter just one of the options, you need to first fill avfilter.conf with all the default values, and then tweak the one you're after. For example, the first time you enable a "scan" option, say "allmatch", do:
/local/libexec/usr/path/filters/avfilter --config |\ grep 'bool, scan, default 1' |\ awk '{print $1;}' >> /local/courier/etc/path/filters/avfilter.conf
and then
echo allmatch >> /local/courier/etc/path/filters/avfilter.conf avfilter_sig reload config
NOTE: at least "scan_mail" must be set, or avfilter won't run.
NOTE2: some names have changed since previous version of both ClamAV and avfilter. See either package's release notes.
Copyright © 2014-2025 Alessandro Vesely