]> git.pld-linux.org Git - packages/amavisd-new.git/blame - amavisd-new-config.patch
- mysql 2.6.2 by Eero Hänninen
[packages/amavisd-new.git] / amavisd-new-config.patch
CommitLineData
e16814fb 1--- amavisd-new-2.4.5/amavisd.conf-sample.orig 2007-01-30 23:12:24.000000000 +0000
2+++ amavisd-new-2.4.5/amavisd.conf-sample 2007-03-04 00:19:16.457106000 +0000
60e8cb7d 3@@ -63,7 +63,7 @@
4 # $MYHOME serves as a quick default for some other configuration settings.
5 # More refined control is available with each individual setting further down.
6 # $MYHOME is not used directly by the program. No trailing slash!
7-#$MYHOME = '/var/lib/amavis'; # (default is '/var/amavis'), -H
8+$MYHOME = '/var/spool/amavis'; # (default is '/var/amavis'), -H
9
10 # $mydomain serves as a quick default for some other configuration settings.
11 # More refined control is available with each individual setting further down.
12@@ -74,16 +74,16 @@
13
14 # Set the user and group to which the daemon will change if started as root
15 # (otherwise just keeps the UID unchanged, and these settings have no effect):
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
20
21 # Runtime working directory (cwd), and a place where
22 # temporary directories for unpacking mail are created.
f2c96aaf 23 # (no trailing slash, may be a scratch file system)
60e8cb7d 24-$TEMPBASE = $MYHOME; # (must be set if other config vars use is), -T
7f56ebe7 25+$TEMPBASE = "$MYHOME/runtime"; # (must be set if other config vars use is), -T
60e8cb7d 26 #$TEMPBASE = "$MYHOME/tmp"; # prefer to keep home dir /var/amavis clean?
f2c96aaf 27
e16814fb 28-#$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db", -D
29+$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db", -D
f2c96aaf 30
8f9da28f
JR
31 # $helpers_home sets environment variable HOME, and is passed as option
32 # 'home_dir_for_helpers' to Mail::SpamAssassin::new. It should be a directory
60e8cb7d 33@@ -93,8 +93,8 @@
97a5e95d 34 # Run the daemon in the specified chroot jail if nonempty:
2183a73b 35 #$daemon_chroot_dir = $MYHOME; # (default is undef, meaning: do not chroot), -R
97a5e95d 36
2183a73b
PG
37-#$pid_file = "$MYHOME/amavisd.pid"; # (default is "$MYHOME/amavisd.pid"), -P
38-#$lock_file = "$MYHOME/amavisd.lock"; # (default is "$MYHOME/amavisd.lock"), -L
39+$pid_file = "/var/run/amavisd/amavisd.pid"; # (default is "$MYHOME/amavisd.pid"), -P
40+$lock_file = "/var/run/amavisd/amavisd.lock"; # (default is "$MYHOME/amavisd.lock"), -L
97a5e95d
TP
41
42 # set environment variables if you want (no defaults):
43 $ENV{TMPDIR} = $TEMPBASE; # wise to set TMPDIR, but not obligatory
60e8cb7d 44@@ -112,6 +112,8 @@
1dd6756d
JR
45 #$forward_method = 'smtp:[127.0.0.1]:10025'; # where to forward checked mail
46 #$notify_method = $forward_method; # where to submit notifications
1dd6756d 47
2183a73b 48+#@auth_mech_avail = ('PLAIN','LOGIN'); # empty list disables incoming AUTH
9855952f 49+
e0c5f1c0
PG
50 #$os_fingerprint_method = 'p0f:127.0.0.1:2345'; # query p0f-analyzer.pl
51
1dd6756d 52 # To make it possible for several hosts to share one content checking daemon,
60e8cb7d 53@@ -171,7 +173,7 @@
e8d05b10
MK
54 # and see further down what these two lookup lists really mean.
55 #
1d554b7d
JR
56 # @bypass_virus_checks_maps = (1); # controls running of anti-virus code
57-# @bypass_spam_checks_maps = (1); # controls running of anti-spam code
58+@bypass_spam_checks_maps = (1); # controls running of anti-spam code
59 # $bypass_decode_parts = 1; # controls running of decoders&dearchivers
e8d05b10
MK
60 #
61 # Any setting can be changed with a new assignment, so make sure
60e8cb7d 62@@ -217,8 +219,8 @@
2183a73b
PG
63 # AMAVIS-CLIENT PROTOCOL INPUT SETTINGS (e.g. with amavisd-release, or
64 # sendmail milter through helper clients like amavis-milter.c and amavis.c)
65 # option(s) -p overrides $inet_socket_port and $unix_socketname
97a5e95d 66-$unix_socketname = "$MYHOME/amavisd.sock"; # amavis helper protocol socket
e0c5f1c0 67-#$unix_socketname = undef; # disable listening on a unix socket
97a5e95d 68+#$unix_socketname = "/var/run/amavisd/amavisd.sock"; # amavis helper protocol socket
e0c5f1c0 69+$unix_socketname = undef; # disable listening on a unix socket
97a5e95d
TP
70 # (default is undef, i.e. disabled)
71 # (usual setting is $MYHOME/amavisd.sock)
e0c5f1c0 72
60e8cb7d 73@@ -301,7 +303,7 @@
e0c5f1c0 74 # choose from: emerg, alert, crit, err, warning, notice, info, debug
4395c06f
MK
75
76 # Log file (if not using syslog)
77-$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)
2183a73b 78+#$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)
4395c06f
MK
79
80 #NOTE: levels are not strictly observed and are somewhat arbitrary
81 # 0: startup/exit/failure messages, viruses detected
60e8cb7d 82@@ -310,7 +312,7 @@
e8d05b10
MK
83 # 3: server, client
84 # 4: decompose parts
85 # 5: more debug details
2183a73b
PG
86-$log_level = 2; # (defaults to 0), -d
87+#$log_level = 2; # (defaults to 0), -d
e8d05b10
MK
88
89 # Customizable template for the most interesting log file entry (e.g. with
90 # $log_level=0) (take care to properly quote Perl special characters like '\')
e16814fb 91@@ -689,7 +691,8 @@
eda82b86 92 # or a directory (no trailing slash)
7f7d88d2 93 # (the default value is undef, meaning no quarantine)
66ce8ece 94 #
2183a73b
PG
95-$QUARANTINEDIR = '/var/virusmails'; # -Q
96+#$QUARANTINEDIR = '/var/virusmails'; # -Q
97+$QUARANTINEDIR = '/var/spool/amavis/virusmails'; # -Q
eda82b86 98
e0c5f1c0
PG
99 #$quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine
100
e16814fb 101@@ -1900,15 +1903,15 @@
e8d05b10
MK
102 # ['Sophos SAVI', \&sophos_savi ],
103
8ef44a08 104 # ### http://www.clamav.net/
f2c96aaf 105-# ['ClamAV-clamd',
8ef44a08 106-# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
e8d05b10 107-# qr/\bOK$/, qr/\bFOUND$/,
a1ff9748 108-# qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
e16814fb 109-# # NOTE: run clamd under the same user as amavisd, or run it under its own
110-# # uid such as clamav, add user clamav to the amavis group, and then add
111-# # AllowSupplementaryGroups to clamd.conf;
112-# # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
113-# # this entry; when running chrooted one may prefer socket "$MYHOME/clamd".
114+['ClamAV-clamd',
115+ \&ask_daemon, ["CONTSCAN {}\n", "/var/lib/clamav/clamd.socket"],
116+ qr/\bOK$/, qr/\bFOUND$/,
117+ qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
118+# NOTE: run clamd under the same user as amavisd, or run it under its own
119+# uid such as clamav, add user clamav to the amavis group, and then add
120+# AllowSupplementaryGroups to clamd.conf;
121+# NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in
122+# this entry; when running chrooted one may prefer socket "$MYHOME/clamd".
e8d05b10 123
4f91afad 124 # ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred)
125 # ['Mail::ClamAV', \&ask_clamav, "*", [0], [1], qr/^INFECTED: (.+)/],
e16814fb 126@@ -2070,10 +2073,11 @@
2183a73b
PG
127 # NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer
128 # see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783
e8d05b10 129
4f91afad 130- ### http://mks.com.pl/english.html
2183a73b
PG
131- ['MkS_Vir for Linux (beta)', ['mks32','mks'],
132- '-s {}/*', [0], [1,2],
a1ff9748 133- qr/--[ \t]*(.+)/m ],
4395c06f 134+# Moved to secondary scanner
4f91afad 135+# ### http://mks.com.pl/english.html
2183a73b
PG
136+# ['MkS_Vir for Linux (beta)', ['mks32','mks'],
137+# '-s {}/*', [0], [1,2],
a1ff9748 138+# qr/--[ \t]*(.+)/m ],
4395c06f 139
2183a73b
PG
140 ### http://mks.com.pl/english.html
141 ['MkS_Vir daemon', 'mksscan',
e16814fb 142@@ -2298,6 +2302,10 @@
4395c06f 143 # ],
a1ff9748 144 # # other options to consider: -idedir=/usr/local/sav
4395c06f 145
e0c5f1c0
PG
146+ ['MkS_Vir for Linux (beta)', ['mks32','mks'],
147+ '-s {}/*', [0], [1,2],
a1ff9748 148+ qr/--[ \t]*(.+)/m ],
8ef44a08 149+
a1ff9748
ER
150 # Always succeeds and considers mail clean.
151 # Potentially useful when all other scanners fail and it is desirable
4395c06f 152
This page took 0.091529 seconds and 4 git commands to generate.