]> git.pld-linux.org Git - packages/amavisd-new.git/blame - amavisd-new-config.patch
- BR: rpm-perlprov
[packages/amavisd-new.git] / amavisd-new-config.patch
CommitLineData
9855952f
SP
1--- amavisd-new-2.2.1/amavisd.conf-sample 2004-12-23 01:38:23.000000000 +0000
2+++ amavisd-new-2.2.1.new/amavisd.conf-sample 2004-12-23 20:18:27.372867424 +0000
3@@ -62,27 +62,31 @@
7f7d88d2
JR
4 # $MYHOME serves as a quick default for some other configuration settings.
5 # More refined control is available with each individual setting further down.
2a7aba10 6 # $MYHOME is not used directly by the program. No trailing slash!
7f7d88d2 7-#$MYHOME = '/var/lib/amavis'; # (default is '/var/amavis')
f2c96aaf 8+$MYHOME = '/var/spool/amavis'; # (default is '/var/amavis')
7f7d88d2
JR
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 # $mydomain is never used directly by the program.
13-$mydomain = 'example.com'; # (no useful default)
4f91afad 14+#$mydomain = 'example.com'; # (no useful default)
4395c06f 15+
e8d05b10 16+# This seems to be prefixed to host's domain name.
4395c06f 17+# You may get mail rejects of virus information as send from not
e8d05b10 18+# existing host ( virusalert@localhost.whatever.your.domain.is )
4395c06f 19+$mydomain = 'mail.whatever.your.domain.is'; # (no useful default)
7f7d88d2 20
8ef44a08 21 # $myhostname = 'host.example.com'; # fqdn of this host, default by uname(3)
22
7f7d88d2 23 # Set the user and group to which the daemon will change if started as root
4395c06f 24 # (otherwise just keeps the UID unchanged, and these settings have no effect):
4f91afad 25-$daemon_user = 'vscan'; # (no default; customary: vscan or amavis)
26-$daemon_group = 'vscan'; # (no default; customary: vscan or amavis or sweep)
27+$daemon_user = 'amavis'; # (no default; customary: vscan or amavis)
28+$daemon_group = 'amavis'; # (no default; customary: vscan or amavis or sweep)
7f7d88d2
JR
29
30 # Runtime working directory (cwd), and a place where
31 # temporary directories for unpacking mail are created.
f2c96aaf
JR
32 # (no trailing slash, may be a scratch file system)
33-$TEMPBASE = $MYHOME; # (must be set if other config vars use is)
34-#$TEMPBASE = "$MYHOME/tmp"; # prefer to keep home dir /var/amavis clean?
4f91afad 35+$TEMPBASE = "$MYHOME/runtime"; # (must be set if other config vars use is)
f2c96aaf 36
8f9da28f 37-#$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db"
10fc15cc 38+$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db"
f2c96aaf 39
8f9da28f
JR
40 # $helpers_home sets environment variable HOME, and is passed as option
41 # 'home_dir_for_helpers' to Mail::SpamAssassin::new. It should be a directory
97a5e95d
TP
42@@ -92,8 +96,8 @@
43 # Run the daemon in the specified chroot jail if nonempty:
44 #$daemon_chroot_dir = $MYHOME; # (default is undef, meaning: do not chroot)
45
46-#$pid_file = "$MYHOME/amavisd.pid"; # (default is "$MYHOME/amavisd.pid")
47-#$lock_file = "$MYHOME/amavisd.lock"; # (default is "$MYHOME/amavisd.lock")
48+$pid_file = "/var/run/amavisd/amavisd.pid"; # (default is "$MYHOME/amavisd.pid")
49+$lock_file = "/var/run/amavisd/amavisd.lock"; # (default is "$MYHOME/amavisd.lock")
50
51 # set environment variables if you want (no defaults):
52 $ENV{TMPDIR} = $TEMPBASE; # wise to set TMPDIR, but not obligatory
9855952f 53@@ -111,6 +115,9 @@
1dd6756d
JR
54 #$forward_method = 'smtp:[127.0.0.1]:10025'; # where to forward checked mail
55 #$notify_method = $forward_method; # where to submit notifications
1dd6756d 56
4f91afad 57+# @auth_mech_avail = ('PLAIN','LOGIN'); # empty list disables incoming AUTH
9855952f 58+
4f91afad 59+
1dd6756d
JR
60 # To make it possible for several hosts to share one content checking daemon,
61 # the IP address and/or the port number in $forward_method and $notify_method
4f91afad 62 # may be spacified as an asterisk. An asterisk in the colon-separated
9855952f 63@@ -164,7 +171,7 @@
e8d05b10
MK
64 # and see further down what these two lookup lists really mean.
65 #
f2c96aaf
JR
66 # @bypass_virus_checks_maps = (1); # uncomment to DISABLE anti-virus code
67-# @bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code
68+@bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code
e8d05b10
MK
69 #
70 # Any setting can be changed with a new assignment, so make sure
71 # you do not unintentionally override these settings further down!
97a5e95d
TP
72@@ -209,7 +216,7 @@
73 # AMAVIS-CLIENT PROTOCOL INPUT SETTINGS (e.g. with sendmail milter)
74 # (used with amavis helper clients like amavis-milter.c and amavis.c,
75 # NOT needed for Postfix or Exim or dual-sendmail - keep it undefined.
76-$unix_socketname = "$MYHOME/amavisd.sock"; # amavis helper protocol socket
77+#$unix_socketname = "/var/run/amavisd/amavisd.sock"; # amavis helper protocol socket
78 #$unix_socketname = undef; # disable listening on a unix socket
79 # (default is undef, i.e. disabled)
80 # (usual setting is $MYHOME/amavisd.sock)
9855952f 81@@ -279,7 +286,7 @@
8ef44a08 82 #$SYSLOG_LEVEL = 'user.info'; # (facility.priority, default 'mail.info')
4395c06f
MK
83
84 # Log file (if not using syslog)
85-$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)
86+# $LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)
87
88 #NOTE: levels are not strictly observed and are somewhat arbitrary
89 # 0: startup/exit/failure messages, viruses detected
9855952f 90@@ -288,7 +295,8 @@
e8d05b10
MK
91 # 3: server, client
92 # 4: decompose parts
93 # 5: more debug details
94-$log_level = 2; # (defaults to 0)
4395c06f 95+# $log_level = 2; # (defaults to 0)
9855952f 96+
e8d05b10
MK
97
98 # Customizable template for the most interesting log file entry (e.g. with
99 # $log_level=0) (take care to properly quote Perl special characters like '\')
9855952f 100@@ -471,22 +479,22 @@
4f91afad 101 # Bounces or rejects produce non-delivery status notification regardless.
e8d05b10
MK
102
103 # Notify virus sender?
104-#$warnvirussender = 1; # (defaults to false (undef))
105+$warnvirussender = 1; # (defaults to false (undef))
106
107 # Notify spam sender?
108-#$warnspamsender = 1; # (defaults to false (undef))
109+$warnspamsender = 1; # (defaults to false (undef))
110
111 # Notify sender of banned files?
112-#$warnbannedsender = 1; # (defaults to false (undef))
113+$warnbannedsender = 1; # (defaults to false (undef))
114
115 # Notify sender of syntactically invalid header containing non-ASCII characters?
8ef44a08 116-#$warnbadhsender = 1; # (defaults to false (undef))
117+# $warnbadhsender = 1; # (defaults to false (undef))
e8d05b10 118
f2c96aaf 119 # Notify virus (or banned files or bad headers) RECIPIENT?
e8d05b10
MK
120 # (not very useful, but some policies demand it)
121-#$warnvirusrecip = 1; # (defaults to false (undef))
122-#$warnbannedrecip = 1; # (defaults to false (undef))
f2c96aaf 123-#$warnbadhrecip = 1; # (defaults to false (undef))
e8d05b10
MK
124+$warnvirusrecip = 1; # (defaults to false (undef))
125+$warnbannedrecip = 1; # (defaults to false (undef))
f2c96aaf 126+$warnbadhrecip = 1; # (defaults to false (undef))
e8d05b10
MK
127
128 # Notify also non-local virus/banned recipients if $warn*recip is true?
129 # (including those not matching local_domains*)
9855952f 130@@ -587,7 +595,8 @@
eda82b86 131 # or a directory (no trailing slash)
7f7d88d2 132 # (the default value is undef, meaning no quarantine)
66ce8ece 133 #
eda82b86 134-$QUARANTINEDIR = '/var/virusmails';
4395c06f 135+# $QUARANTINEDIR = '/var/virusmails';
eda82b86
JR
136+$QUARANTINEDIR = '/var/spool/amavis/virusmails';
137
4f91afad 138 #$virus_quarantine_method = 'local:virus-%i-%n'; # default
139 #$spam_quarantine_method = 'local:spam-%b-%i-%n'; # default
9855952f 140@@ -1600,13 +1609,12 @@
e8d05b10
MK
141 # ['Sophos SAVI', \&sophos_savi ],
142
8ef44a08 143 # ### http://www.clamav.net/
f2c96aaf 144-# ['ClamAV-clamd',
8ef44a08 145-# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
e8d05b10
MK
146-# qr/\bOK$/, qr/\bFOUND$/,
147-# qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
9855952f
SP
148-# # NOTE: the easiest is to run clamd under the same user as amavisd; match the
149-# # socket name (LocalSocket) in clamav.conf to the socket name in this entry
8ef44a08 150-# # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],
e8d05b10 151+ ['Clam Antivirus-clamd',
4395c06f
MK
152+ \&ask_daemon, ["CONTSCAN {}\n", '/var/lib/clamav/clamd.socket'],
153+ qr/\bOK$/, qr/\bFOUND$/,
154+ qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
155+
e8d05b10
MK
156+# NOTE: match the socket name in clamav.conf to the socket name in this entry
157
4f91afad 158 # ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred)
159 # ['Mail::ClamAV', \&ask_clamav, "*", [0], [1], qr/^INFECTED: (.+)/],
9855952f
SP
160@@ -1740,10 +1748,11 @@
161 # NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer
162 # see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783
e8d05b10 163
4f91afad 164- ### http://mks.com.pl/english.html
e8d05b10
MK
165- ['MkS_Vir for Linux (beta)', ['mks32','mks'],
166- '-s {}/*', [0], [1,2],
167- qr/--[ \t]*(.+)/ ],
4395c06f 168+# Moved to secondary scanner
4f91afad 169+# ### http://mks.com.pl/english.html
4395c06f
MK
170+# ['MkS_Vir for Linux (beta)', ['mks32','mks'],
171+# '-s {}/*', [0], [1,2],
172+# qr/--[ \t]*(.+)/ ],
173
4f91afad 174 ### http://mks.com.pl/english.html
175 ['MkS_Vir daemon', 'mksscan',
9855952f 176@@ -1938,6 +1947,11 @@
4395c06f 177 # ],
8ef44a08 178 # # other options to consider: -mime -oe -idedir=/usr/local/sav
4395c06f
MK
179
180+ ['MkS_Vir for Linux (beta)', ['mks32','mks'],
181+ '-s {}/*', [0], [1,2],
182+ qr/--[ \t]*(.+)/ ],
9855952f 183+
8ef44a08 184+
185 # always succeeds (uncomment to consider mail clean if all other scanners fail)
186 # ['always-clean', sub {0}],
4395c06f 187
This page took 0.048826 seconds and 4 git commands to generate.