]> git.pld-linux.org Git - packages/amavisd-new.git/blame - amavisd-new-config.patch
- cosmetics
[packages/amavisd-new.git] / amavisd-new-config.patch
CommitLineData
167d3ce4
MK
1diff -urp amavis-v2.12.1.orig/amavisd.conf amavis-v2.12.1/amavisd.conf
2--- amavis-v2.12.1.orig/amavisd.conf 2020-11-13 13:55:37.000000000 +0100
3+++ amavis-v2.12.1/amavisd.conf 2021-01-24 21:25:54.841592502 +0100
4@@ -10,32 +10,32 @@ use strict;
9e2c9e47 5 # COMMONLY ADJUSTED SETTINGS:
60e8cb7d 6
1d554b7d
JR
7 # @bypass_virus_checks_maps = (1); # controls running of anti-virus code
8-# @bypass_spam_checks_maps = (1); # controls running of anti-spam code
9+@bypass_spam_checks_maps = (1); # controls running of anti-spam code
10 # $bypass_decode_parts = 1; # controls running of decoders&dearchivers
e0c5f1c0 11
d671c0e0
JR
12 # $myprogram_name = $0; # set to 'amavisd' or similar to avoid process name
13 # truncation in /proc/<pid>/stat and ps -e output
14
9e2c9e47
ER
15 $max_servers = 2; # num of pre-forked children (2..30 is common), -m
16-$daemon_user = 'vscan'; # (no default; customary: vscan or amavis), -u
17-$daemon_group = 'vscan'; # (no default; customary: vscan or amavis), -g
18+$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u
19+$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g
4395c06f 20
9e2c9e47 21 $mydomain = 'example.com'; # a convenient default for other settings
4395c06f 22
9e2c9e47
ER
23-# $MYHOME = '/var/amavis'; # a convenient default for other settings, -H
24-$TEMPBASE = "$MYHOME/tmp"; # working directory, needs to exist, -T
25+$MYHOME = '/var/spool/amavis'; # a convenient default for other settings, -H
26+$TEMPBASE = "$MYHOME/runtime"; # working directory, needs to exist, -T
27 $ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc.
2183a73b 28-$QUARANTINEDIR = '/var/virusmails'; # -Q
2183a73b 29+$QUARANTINEDIR = '/var/spool/amavis/virusmails'; # -Q
9e2c9e47
ER
30 # $quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine
31 # $release_format = 'resend'; # 'attach', 'plain', 'resend'
32 # $report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf'
33
34 # $daemon_chroot_dir = $MYHOME; # chroot directory or undef, -R
35
36-# $db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
37+$db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
38 # $helpers_home = "$MYHOME/var"; # working directory for SpamAssassin, -S
39-# $lock_file = "$MYHOME/var/amavisd.lock"; # -L
40-# $pid_file = "$MYHOME/var/amavisd.pid"; # -P
41+$lock_file = "/var/run/amavisd/amavisd.lock"; # -L
42+$pid_file = "/var/run/amavisd/amavisd.pid"; # -P
43 #NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually
44
45 $log_level = 0; # verbosity 0..5, -d
167d3ce4 46@@ -55,7 +55,8 @@ $enable_dkim_signing = 1; # load DKIM
9e2c9e47
ER
47 @mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
48 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
49
50-$unix_socketname = "$MYHOME/amavisd.sock"; # amavisd-release or amavis-milter
51+#$unix_socketname = "/var/run/amavisd/amavisd.sock"; # amavisd-release or amavis-milter
52+$unix_socketname = undef; # disable listening on a unix socket
53 # option(s) -p overrides $inet_socket_port and $unix_socketname
eda82b86 54
9e2c9e47 55 $inet_socket_port = 10024; # listen on this local TCP port(s)
167d3ce4
MK
56@@ -382,16 +383,15 @@ $banned_filename_re = new_RE(
57 # qr/^(?:310|420)[,\s]*(?:.* <<< )?(.+?)(?: ; |$)/m ],
9e2c9e47 58 # settings for the SAVAPI3.conf: ArchiveScan=1, HeurLevel=2, MailboxScan=1
e8d05b10 59
438a8f7b 60-# ### http://www.clamav.net/
f2c96aaf 61-# ['ClamAV-clamd',
34bb2dd7 62-# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.sock"],
438a8f7b 63-# qr/\bOK$/m, qr/\bFOUND$/m,
a1ff9748 64-# qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
34bb2dd7 65-# # NOTE: run clamd under the same user as amavisd - or run it under its own
e16814fb 66-# # uid such as clamav, add user clamav to the amavis group, and then add
67-# # AllowSupplementaryGroups to clamd.conf;
68-# # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
34bb2dd7 69-# # this entry; when running chrooted one may prefer a socket under $MYHOME.
e16814fb 70+['ClamAV-clamd',
71+ \&ask_daemon, ["CONTSCAN {}\n", "/var/lib/clamav/clamd.socket"],
72+ qr/\bOK$/, qr/\bFOUND$/,
73+ qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
34bb2dd7 74+# NOTE: run clamd under the same user as amavisd - or run it under its own
e16814fb 75+# uid such as clamav, add user clamav to the amavis group, and then add
76+# AllowSupplementaryGroups to clamd.conf;
77+# NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
34bb2dd7 78+# this entry; when running chrooted one may prefer a socket under $MYHOME.
e8d05b10 79
4f91afad 80 # ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred)
438a8f7b 81 # # note that Mail::ClamAV requires perl to be build with threading!
167d3ce4 82@@ -580,16 +580,21 @@ $banned_filename_re = new_RE(
2183a73b
PG
83 # NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer
84 # see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783
e8d05b10 85
4f91afad 86- ### http://mks.com.pl/english.html
2183a73b
PG
87- ['MkS_Vir for Linux (beta)', ['mks32','mks'],
88- '-s {}/*', [0], [1,2],
a1ff9748 89- qr/--[ \t]*(.+)/m ],
4395c06f 90+# Moved to secondary scanner
4f91afad 91+# ### http://mks.com.pl/english.html
2183a73b
PG
92+# ['MkS_Vir for Linux (beta)', ['mks32','mks'],
93+# '-s {}/*', [0], [1,2],
a1ff9748 94+# qr/--[ \t]*(.+)/m ],
4395c06f 95
2183a73b
PG
96 ### http://mks.com.pl/english.html
97 ['MkS_Vir daemon', 'mksscan',
438a8f7b
SP
98 '-s -q {}', [0], [1..7],
99 qr/^... (\S+)/m ],
4395c06f 100
e0c5f1c0
PG
101+ ['MkS_Vir for Linux (beta)', ['mks32','mks'],
102+ '-s {}/*', [0], [1,2],
a1ff9748 103+ qr/--[ \t]*(.+)/m ],
8ef44a08 104+
438a8f7b
SP
105 # ### http://www.nod32.com/, version v2.52 (old)
106 # ['ESET NOD32 for Linux Mail servers',
107 # ['/opt/eset/nod32/bin/nod32cli', 'nod32cli'],
This page took 0.120518 seconds and 4 git commands to generate.