Changeset View
Changeset View
Standalone View
Standalone View
share/templates/amavisd.conf.tpl
- This file was copied to share/templates/amavisd.conf.j2.
Show All 12 Lines | |||||
# @bypass_virus_checks_maps = (1); # controls running of anti-virus code | # @bypass_virus_checks_maps = (1); # controls running of anti-virus code | ||||
# @bypass_spam_checks_maps = (1); # controls running of anti-spam code | # @bypass_spam_checks_maps = (1); # controls running of anti-spam code | ||||
# \$bypass_decode_parts = 1; # controls running of decoders&dearchivers | # \$bypass_decode_parts = 1; # controls running of decoders&dearchivers | ||||
\$max_servers = 2; # num of pre-forked children (2..30 is common), -m | \$max_servers = 2; # num of pre-forked children (2..30 is common), -m | ||||
\$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u | \$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u | ||||
\$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g | \$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g | ||||
\$mydomain = '$primary_domain'; # a convenient default for other settings | \$mydomain = '{{ kolab.primary_domain }}'; # a convenient default for other settings | ||||
\$MYHOME = '/var/spool/amavisd'; # a convenient default for other settings, -H | \$MYHOME = '/var/spool/amavisd'; # a convenient default for other settings, -H | ||||
\$TEMPBASE = "\$MYHOME/tmp"; # working directory, needs to exist, -T | \$TEMPBASE = "\$MYHOME/tmp"; # working directory, needs to exist, -T | ||||
\$ENV{TMPDIR} = \$TEMPBASE; # environment variable TMPDIR, used by SA, etc. | \$ENV{TMPDIR} = \$TEMPBASE; # environment variable TMPDIR, used by SA, etc. | ||||
\$QUARANTINEDIR = undef; # -Q | \$QUARANTINEDIR = undef; # -Q | ||||
# \$quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine | # \$quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine | ||||
# \$release_format = 'resend'; # 'attach', 'plain', 'resend' | # \$release_format = 'resend'; # 'attach', 'plain', 'resend' | ||||
# \$report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf' | # \$report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf' | ||||
▲ Show 20 Lines • Show All 338 Lines • ▼ Show 20 Lines | |||||
# qr/(?x)^ 0+ ( : | [\000\r\n]* \$)/m, qr/(?x)^ 1 ( : | [\000\r\n]* \$)/m, | # qr/(?x)^ 0+ ( : | [\000\r\n]* \$)/m, qr/(?x)^ 1 ( : | [\000\r\n]* \$)/m, | ||||
# qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* \$/m ], | # qr/(?x)^ [-+]? \d+ : (.*?) [\000\r\n]* \$/m ], | ||||
# \#\## http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/ | # \#\## http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/ | ||||
# ['Sophos SAVI', \&sophos_savi ], | # ['Sophos SAVI', \&sophos_savi ], | ||||
# \#\## http://www.clamav.net/ | # \#\## http://www.clamav.net/ | ||||
['ClamAV-clamd', | ['ClamAV-clamd', | ||||
\&ask_daemon, ["CONTSCAN {}\n", "$clamdsock"], | \&ask_daemon, ["CONTSCAN {}\n", "{{ clamdsock }}"], | ||||
qr/\bOK\$/m, qr/\bFOUND\$/m, | qr/\bOK\$/m, qr/\bFOUND\$/m, | ||||
qr/^.*?: (?!Infected Archive)(.*) FOUND\$/m ], | qr/^.*?: (?!Infected Archive)(.*) FOUND\$/m ], | ||||
# # NOTE: run clamd under the same user as amavisd, or run it under its own | # # NOTE: run clamd under the same user as amavisd, or run it under its own | ||||
# # uid such as clamav, add user clamav to the amavis group, and then add | # # uid such as clamav, add user clamav to the amavis group, and then add | ||||
# # AllowSupplementaryGroups to clamd.conf; | # # AllowSupplementaryGroups to clamd.conf; | ||||
# # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in | # # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in | ||||
# # this entry; when running chrooted one may prefer socket "\$MYHOME/clamd". | # # this entry; when running chrooted one may prefer socket "\$MYHOME/clamd". | ||||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |