]> git.pld-linux.org Git - packages/amavisd-new.git/blob - amavisd-new-config.patch
- updated for 2.1.2
[packages/amavisd-new.git] / amavisd-new-config.patch
1 --- amavisd-new-2.1.0/amavisd.conf-sample.orig  2004-08-06 16:54:38.000000000 +0200
2 +++ amavisd-new-2.1.0/amavisd.conf-sample       2004-08-06 19:40:58.730887728 +0200
3 @@ -58,27 +58,31 @@
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')
8 +$MYHOME = '/var/spool/amavis';   # (default is '/var/amavis')
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)
14 +#$mydomain = 'example.com';      # (no useful default)
15 +
16 +# This seems to be prefixed to host's domain name.
17 +# You may get mail rejects of virus information as send from not
18 +# existing host ( virusalert@localhost.whatever.your.domain.is )
19 +$mydomain = 'mail.whatever.your.domain.is';      # (no useful default)
20  
21  # $myhostname = 'host.example.com';  # fqdn of this host, default by uname(3)
22  
23  # Set the user and group to which the daemon will change if started as root
24  # (otherwise just keeps the UID unchanged, and these settings have no effect):
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)
29  
30  # Runtime working directory (cwd), and a place where
31  # temporary directories for unpacking mail are created.
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?
35 +$TEMPBASE = "$MYHOME/runtime";         # (must be set if other config vars use is)
36  
37 -#$db_home = "$MYHOME/db";      # DB databases directory, default "$MYHOME/db"
38 +$db_home = "/var/spool/amavis/db";     # DB databases directory, default "$MYHOME/db"
39  
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
42 @@ -107,6 +111,8 @@
43  #$forward_method = 'smtp:[127.0.0.1]:10025';  # where to forward checked mail
44  #$notify_method = $forward_method;            # where to submit notifications
45  
46 +# @auth_mech_avail = ('PLAIN','LOGIN'); # empty list disables incoming AUTH
47 +
48  # To make it possible for several hosts to share one content checking daemon,
49  # the IP address and/or the port number in $forward_method and $notify_method
50  # may be spacified as an asterisk. An asterisk in the colon-separated
51 @@ -160,7 +166,8 @@
52  # and see further down what these two lookup lists really mean.
53  #
54  # @bypass_virus_checks_maps = (1);  # uncomment to DISABLE anti-virus code
55 -# @bypass_spam_checks_maps  = (1);  # uncomment to DISABLE anti-spam code
56 +@bypass_spam_checks_maps  = (1);  # uncomment to DISABLE anti-spam code
57 +
58  #
59  # Any setting can be changed with a new assignment, so make sure
60  # you do not unintentionally override these settings further down!
61 @@ -275,7 +282,7 @@
62  #$SYSLOG_LEVEL = 'user.info';     # (facility.priority, default 'mail.info')
63  
64  # Log file (if not using syslog)
65 -$LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)
66 +# $LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)
67  
68  #NOTE: levels are not strictly observed and are somewhat arbitrary
69  # 0: startup/exit/failure messages, viruses detected
70 @@ -284,7 +291,7 @@
71  # 3: server, client
72  # 4: decompose parts
73  # 5: more debug details
74 -$log_level = 2;                  # (defaults to 0)
75 +# $log_level = 2;                # (defaults to 0)
76  
77  # Customizable template for the most interesting log file entry (e.g. with
78  # $log_level=0) (take care to properly quote Perl special characters like '\')
79 @@ -453,22 +460,22 @@
80  # Bounces or rejects produce non-delivery status notification regardless.
81  
82  # Notify virus sender?
83 -#$warnvirussender = 1; # (defaults to false (undef))
84 +$warnvirussender = 1;  # (defaults to false (undef))
85  
86  # Notify spam sender?
87 -#$warnspamsender = 1;  # (defaults to false (undef))
88 +$warnspamsender = 1;   # (defaults to false (undef))
89  
90  # Notify sender of banned files?
91 -#$warnbannedsender = 1;        # (defaults to false (undef))
92 +$warnbannedsender = 1; # (defaults to false (undef))
93  
94  # Notify sender of syntactically invalid header containing non-ASCII characters?
95 -#$warnbadhsender = 1;  # (defaults to false (undef))
96 +# $warnbadhsender = 1; # (defaults to false (undef))
97  
98  # Notify virus (or banned files or bad headers) RECIPIENT?
99  #  (not very useful, but some policies demand it)
100 -#$warnvirusrecip = 1;  # (defaults to false (undef))
101 -#$warnbannedrecip = 1; # (defaults to false (undef))
102 -#$warnbadhrecip = 1;   # (defaults to false (undef))
103 +$warnvirusrecip = 1;   # (defaults to false (undef))
104 +$warnbannedrecip = 1;  # (defaults to false (undef))
105 +$warnbadhrecip = 1;    # (defaults to false (undef))
106  
107  # Notify also non-local virus/banned recipients if $warn*recip is true?
108  #  (including those not matching local_domains*)
109 @@ -567,7 +574,8 @@
110  #   or a directory (no trailing slash)
111  #   (the default value is undef, meaning no quarantine)
112  #
113 -$QUARANTINEDIR = '/var/virusmails';
114 +# $QUARANTINEDIR = '/var/virusmails';
115 +$QUARANTINEDIR = '/var/spool/amavis/virusmails';
116  
117  #$virus_quarantine_method        = 'local:virus-%i-%n';    # default
118  #$spam_quarantine_method         = 'local:spam-%b-%i-%n';  # default
119 @@ -1547,13 +1555,12 @@
120  # ['Sophos SAVI', \&sophos_savi ],
121  
122  # ### http://www.clamav.net/
123 -# ['ClamAV-clamd',
124 -#   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
125 -#   qr/\bOK$/, qr/\bFOUND$/,
126 -#   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
127 -# # NOTE: run clamd under the same user as amavisd;  match the socket
128 -# # name (LocalSocket) in clamav.conf to the socket name in this entry
129 -# # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],
130 +  ['Clam Antivirus-clamd',
131 +    \&ask_daemon, ["CONTSCAN {}\n", '/var/lib/clamav/clamd.socket'],
132 +    qr/\bOK$/, qr/\bFOUND$/,
133 +    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
134 +
135 +# NOTE: match the socket name in clamav.conf to the socket name in this entry
136  
137  # ### http://www.clamav.net/ and CPAN  (memory-hungry! clamd is preferred)
138  # ['Mail::ClamAV', \&ask_clamav, "*", [0], [1], qr/^INFECTED: (.+)/],
139 @@ -1678,10 +1685,11 @@
140      qr/was infected by virus (.+)/ ],
141    # see: http://www.flatmtn.com/computer/Linux-Antivirus_CAI.html
142  
143 -  ### http://mks.com.pl/english.html
144 -  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
145 -    '-s {}/*', [0], [1,2],
146 -    qr/--[ \t]*(.+)/ ], 
147 +#  Moved to secondary scanner
148 +#  ### http://mks.com.pl/english.html
149 +#  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
150 +#    '-s {}/*', [0], [1,2],
151 +#    qr/--[ \t]*(.+)/ ], 
152  
153    ### http://mks.com.pl/english.html
154    ['MkS_Vir daemon', 'mksscan',
155 @@ -1830,6 +1838,10 @@
156  # ],
157  # # other options to consider: -mime -oe -idedir=/usr/local/sav
158  
159 +   ['MkS_Vir for Linux (beta)', ['mks32','mks'],
160 +     '-s {}/*', [0], [1,2],
161 +     qr/--[ \t]*(.+)/ ],
162 +
163  # always succeeds (uncomment to consider mail clean if all other scanners fail)
164  # ['always-clean', sub {0}],
165  
This page took 0.058884 seconds and 3 git commands to generate.