]> git.pld-linux.org Git - packages/amavisd-new.git/blame - amavisd-new-config.patch
- added Conficts: amavis-stats <= 0.1.12
[packages/amavisd-new.git] / amavisd-new-config.patch
CommitLineData
f2c96aaf
JR
1diff -uNr amavisd-new-20030616/amavisd.conf-sample amavisd-new-20030616~/amavisd.conf-sample
2--- amavisd-new-20030616/amavisd.conf-sample Tue Mar 9 03:21:38 2004
3+++ amavisd-new-20030616~/amavisd.conf-sample Sun Mar 14 13:37:30 2004
8f9da28f 4@@ -51,27 +51,31 @@
7f7d88d2
JR
5 # $MYHOME serves as a quick default for some other configuration settings.
6 # More refined control is available with each individual setting further down.
2a7aba10 7 # $MYHOME is not used directly by the program. No trailing slash!
7f7d88d2 8-#$MYHOME = '/var/lib/amavis'; # (default is '/var/amavis')
f2c96aaf 9+$MYHOME = '/var/spool/amavis'; # (default is '/var/amavis')
7f7d88d2
JR
10
11 # $mydomain serves as a quick default for some other configuration settings.
12 # More refined control is available with each individual setting further down.
13 # $mydomain is never used directly by the program.
14-$mydomain = 'example.com'; # (no useful default)
4395c06f
MK
15+# $mydomain = 'example.com'; # (no useful default)
16+
e8d05b10 17+# This seems to be prefixed to host's domain name.
4395c06f 18+# You may get mail rejects of virus information as send from not
e8d05b10 19+# existing host ( virusalert@localhost.whatever.your.domain.is )
4395c06f 20+$mydomain = 'mail.whatever.your.domain.is'; # (no useful default)
7f7d88d2 21
8ef44a08 22 # $myhostname = 'host.example.com'; # fqdn of this host, default by uname(3)
23
7f7d88d2 24 # Set the user and group to which the daemon will change if started as root
4395c06f 25 # (otherwise just keeps the UID unchanged, and these settings have no effect):
7f7d88d2
JR
26-$daemon_user = 'vscan'; # (no default; customary: vscan or amavis)
27-$daemon_group = 'sweep'; # (no default; customary: vscan or amavis)
8ef44a08 28+$daemon_user = 'amavis'; # (no default; customary: vscan or amavis)
29+$daemon_group = 'amavis'; # (no default; customary: vscan or amavis)
7f7d88d2
JR
30
31 # Runtime working directory (cwd), and a place where
32 # temporary directories for unpacking mail are created.
f2c96aaf
JR
33 # (no trailing slash, may be a scratch file system)
34-$TEMPBASE = $MYHOME; # (must be set if other config vars use is)
35-#$TEMPBASE = "$MYHOME/tmp"; # prefer to keep home dir /var/amavis clean?
36+$TEMPBASE = "$MYHOME/runtime"; # (must be set if other config vars use is)
37
8f9da28f
JR
38-#$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db"
39+$db_home = "/var/spool/amavis/db"; # DB databases directory, default "$MYHOME/db"
f2c96aaf 40
8f9da28f
JR
41 # $helpers_home sets environment variable HOME, and is passed as option
42 # 'home_dir_for_helpers' to Mail::SpamAssassin::new. It should be a directory
1dd6756d
JR
43@@ -106,6 +106,8 @@
44 # as an IP address or a DNS name (A or CNAME, but MX is ignored)
45 #$forward_method = 'smtp:[127.0.0.1]:10025'; # where to forward checked mail
46 #$notify_method = $forward_method; # where to submit notifications
47+
48+# @auth_mech_avail = ('PLAIN','LOGIN'); # empty list disables incoming AUTH
49
50 # To make it possible for several hosts to share one content checking daemon,
51 # the IP address and/or the port number in $forward_method and $notify_method
8ef44a08 52@@ -143,7 +148,8 @@
e8d05b10
MK
53 # and see further down what these two lookup lists really mean.
54 #
f2c96aaf
JR
55 # @bypass_virus_checks_maps = (1); # uncomment to DISABLE anti-virus code
56-# @bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code
57+@bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code
4395c06f 58+
e8d05b10
MK
59 #
60 # Any setting can be changed with a new assignment, so make sure
61 # you do not unintentionally override these settings further down!
8ef44a08 62@@ -267,7 +273,7 @@
63 #$SYSLOG_LEVEL = 'user.info'; # (facility.priority, default 'mail.info')
4395c06f
MK
64
65 # Log file (if not using syslog)
66-$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)
67+# $LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log)
68
69 #NOTE: levels are not strictly observed and are somewhat arbitrary
70 # 0: startup/exit/failure messages, viruses detected
8ef44a08 71@@ -276,7 +282,7 @@
e8d05b10
MK
72 # 3: server, client
73 # 4: decompose parts
74 # 5: more debug details
75-$log_level = 2; # (defaults to 0)
4395c06f 76+# $log_level = 2; # (defaults to 0)
e8d05b10
MK
77
78 # Customizable template for the most interesting log file entry (e.g. with
79 # $log_level=0) (take care to properly quote Perl special characters like '\')
f2c96aaf 80@@ -408,22 +414,22 @@
e8d05b10
MK
81 # Bounces or rejects produce non-delivery status notification anyway.
82
83 # Notify virus sender?
84-#$warnvirussender = 1; # (defaults to false (undef))
85+$warnvirussender = 1; # (defaults to false (undef))
86
87 # Notify spam sender?
88-#$warnspamsender = 1; # (defaults to false (undef))
89+$warnspamsender = 1; # (defaults to false (undef))
90
91 # Notify sender of banned files?
92-#$warnbannedsender = 1; # (defaults to false (undef))
93+$warnbannedsender = 1; # (defaults to false (undef))
94
95 # Notify sender of syntactically invalid header containing non-ASCII characters?
8ef44a08 96-#$warnbadhsender = 1; # (defaults to false (undef))
97+# $warnbadhsender = 1; # (defaults to false (undef))
e8d05b10 98
f2c96aaf 99 # Notify virus (or banned files or bad headers) RECIPIENT?
e8d05b10
MK
100 # (not very useful, but some policies demand it)
101-#$warnvirusrecip = 1; # (defaults to false (undef))
102-#$warnbannedrecip = 1; # (defaults to false (undef))
f2c96aaf 103-#$warnbadhrecip = 1; # (defaults to false (undef))
e8d05b10
MK
104+$warnvirusrecip = 1; # (defaults to false (undef))
105+$warnbannedrecip = 1; # (defaults to false (undef))
f2c96aaf 106+$warnbadhrecip = 1; # (defaults to false (undef))
e8d05b10
MK
107
108 # Notify also non-local virus/banned recipients if $warn*recip is true?
109 # (including those not matching local_domains*)
8ef44a08 110@@ -516,7 +522,8 @@
eda82b86 111 # or a directory (no trailing slash)
7f7d88d2 112 # (the default value is undef, meaning no quarantine)
66ce8ece 113 #
eda82b86 114-$QUARANTINEDIR = '/var/virusmails';
4395c06f 115+# $QUARANTINEDIR = '/var/virusmails';
eda82b86
JR
116+$QUARANTINEDIR = '/var/spool/amavis/virusmails';
117
7f7d88d2
JR
118 #$virus_quarantine_method = "local:virus-%i-%n"; # default
119 #$spam_quarantine_method = "local:spam-%b-%i-%n"; # default
8ef44a08 120@@ -1193,13 +1200,12 @@
e8d05b10
MK
121 # ['Sophos SAVI', \&sophos_savi ],
122
8ef44a08 123 # ### http://www.clamav.net/
f2c96aaf 124-# ['ClamAV-clamd',
8ef44a08 125-# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
e8d05b10
MK
126-# qr/\bOK$/, qr/\bFOUND$/,
127-# qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
8ef44a08 128-# # NOTE: run clamd under the same user as amavisd; match the socket
129-# # name (LocalSocket) in clamav.conf to the socket name in this entry
130-# # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],
e8d05b10 131+ ['Clam Antivirus-clamd',
4395c06f
MK
132+ \&ask_daemon, ["CONTSCAN {}\n", '/var/lib/clamav/clamd.socket'],
133+ qr/\bOK$/, qr/\bFOUND$/,
134+ qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
135+
e8d05b10
MK
136+# NOTE: match the socket name in clamav.conf to the socket name in this entry
137
138 # ### http://www.openantivirus.org/
139 # ['OpenAntiVirus ScannerDaemon (OAV)',
8ef44a08 140@@ -1316,9 +1322,10 @@
e8d05b10
MK
141 '-sec -nex {}', [0], [100],
142 qr/was infected by virus (.+)/ ],
143
144- ['MkS_Vir for Linux (beta)', ['mks32','mks'],
145- '-s {}/*', [0], [1,2],
146- qr/--[ \t]*(.+)/ ],
4395c06f
MK
147+# Moved to secondary scanner
148+# ['MkS_Vir for Linux (beta)', ['mks32','mks'],
149+# '-s {}/*', [0], [1,2],
150+# qr/--[ \t]*(.+)/ ],
151
152 ['MkS_Vir daemon',
153 'mksscan', '-s -q {}', [0], [1..7],
d20c1921 154@@ -1444,6 +1451,10 @@
4395c06f 155 # ],
8ef44a08 156 # # other options to consider: -mime -oe -idedir=/usr/local/sav
4395c06f
MK
157
158+ ['MkS_Vir for Linux (beta)', ['mks32','mks'],
159+ '-s {}/*', [0], [1,2],
160+ qr/--[ \t]*(.+)/ ],
8ef44a08 161+
162 # always succeeds (uncomment to consider mail clean if all other scanners fail)
163 # ['always-clean', sub {0}],
4395c06f 164
This page took 0.088938 seconds and 4 git commands to generate.