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