]> git.pld-linux.org Git - packages/amavisd-new.git/blob - amavisd-new-config.patch
05ea4cc64fdc74b54112ae3eb6d9bab98c881714
[packages/amavisd-new.git] / amavisd-new-config.patch
1 diff -uNr amavisd-new-20030616/amavisd.conf amavisd-new-20030616~/amavisd.conf
2 --- amavisd-new-20030616/amavisd.conf   Tue Mar  9 03:21:38 2004
3 +++ amavisd-new-20030616~/amavisd.conf  Sat Mar 13 17:13:34 2004
4 @@ -51,19 +51,24 @@
5  # $MYHOME serves as a quick default for some other configuration settings.
6  # More refined control is available with each individual setting further down.
7  # $MYHOME is not used directly by the program. No trailing slash!
8 -#$MYHOME = '/var/lib/amavis';   # (default is '/var/amavis')
9 +$MYHOME = '/var/spool/amavis/runtime';   # (default is '/var/amavis')
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)
15 +# $mydomain = 'example.com';      # (no useful default)
16 +
17 +# This seems to be prefixed to host's domain name.
18 +# You may get mail rejects of virus information as send from not
19 +# existing host ( virusalert@localhost.whatever.your.domain.is )
20 +$mydomain = 'mail.whatever.your.domain.is';      # (no useful default)
21  
22  # $myhostname = 'host.example.com';  # fqdn of this host, default by uname(3)
23  
24  # Set the user and group to which the daemon will change if started as root
25  # (otherwise just keeps the UID unchanged, and these settings have no effect):
26 -$daemon_user  = 'vscan';       # (no default;  customary: vscan or amavis)
27 -$daemon_group = 'sweep';       # (no default;  customary: vscan or amavis)
28 +$daemon_user  = 'amavis';      # (no default;  customary: vscan or amavis)
29 +$daemon_group = 'amavis';      # (no default;  customary: vscan or amavis)
30  
31  # Runtime working directory (cwd), and a place where
32  # temporary directories for unpacking mail are created.
33 @@ -143,7 +148,8 @@
34  # and see further down what these two lookup lists really mean.
35  #
36  # @bypass_virus_checks_acl = qw( . );  # uncomment to DISABLE anti-virus code
37 -# @bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam code
38 +@bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam code
39 +
40  #
41  # Any setting can be changed with a new assignment, so make sure
42  # you do not unintentionally override these settings further down!
43 @@ -179,7 +185,7 @@
44  # directly, or read from a file, one domain per line; comments and empty lines
45  # are ignored, a dot before a domain name implies its subdomains:
46  #
47 -#read_hash(\%local_domains, '/var/amavis/local_domains');
48 +#read_hash(\%local_domains, '/var/spool/amavis/local_domains'); # PLD path
49  
50  #or alternatively(B), using a list of regular expressions:
51  # $local_domains_re = new_RE( qr'[@.]example\.com$'i );
52 @@ -267,7 +273,7 @@
53  #$SYSLOG_LEVEL = 'user.info';     # (facility.priority, default 'mail.info')
54  
55  # Log file (if not using syslog)
56 -$LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)
57 +# $LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)
58  
59  #NOTE: levels are not strictly observed and are somewhat arbitrary
60  # 0: startup/exit/failure messages, viruses detected
61 @@ -276,7 +282,7 @@
62  # 3: server, client
63  # 4: decompose parts
64  # 5: more debug details
65 -$log_level = 2;                  # (defaults to 0)
66 +# $log_level = 2;                # (defaults to 0)
67  
68  # Customizable template for the most interesting log file entry (e.g. with
69  # $log_level=0) (take care to properly quote Perl special characters like '\')
70 @@ -408,21 +414,21 @@
71  # Bounces or rejects produce non-delivery status notification anyway.
72  
73  # Notify virus sender?
74 -#$warnvirussender = 1; # (defaults to false (undef))
75 +$warnvirussender = 1;  # (defaults to false (undef))
76  
77  # Notify spam sender?
78 -#$warnspamsender = 1;  # (defaults to false (undef))
79 +$warnspamsender = 1;   # (defaults to false (undef))
80  
81  # Notify sender of banned files?
82 -#$warnbannedsender = 1;        # (defaults to false (undef))
83 +$warnbannedsender = 1; # (defaults to false (undef))
84  
85  # Notify sender of syntactically invalid header containing non-ASCII characters?
86 -#$warnbadhsender = 1;  # (defaults to false (undef))
87 +# $warnbadhsender = 1; # (defaults to false (undef))
88  
89  # Notify virus (or banned files) RECIPIENT?
90  #  (not very useful, but some policies demand it)
91 -#$warnvirusrecip = 1;  # (defaults to false (undef))
92 -#$warnbannedrecip = 1; # (defaults to false (undef))
93 +$warnvirusrecip = 1;   # (defaults to false (undef))
94 +$warnbannedrecip = 1;  # (defaults to false (undef))
95  
96  # Notify also non-local virus/banned recipients if $warn*recip is true?
97  #  (including those not matching local_domains*)
98 @@ -516,7 +522,8 @@
99  #   or a directory (no trailing slash)
100  #   (the default value is undef, meaning no quarantine)
101  #
102 -$QUARANTINEDIR = '/var/virusmails';
103 +# $QUARANTINEDIR = '/var/virusmails';
104 +$QUARANTINEDIR = '/var/spool/amavis/virusmails';
105  
106  #$virus_quarantine_method = "local:virus-%i-%n";    # default
107  #$spam_quarantine_method  = "local:spam-%b-%i-%n";  # default
108 @@ -1193,13 +1200,12 @@
109  # ['Sophos SAVI', \&sophos_savi ],
110  
111  # ### http://www.clamav.net/
112 -# ['Clam Antivirus-clamd',
113 -#   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
114 -#   qr/\bOK$/, qr/\bFOUND$/,
115 -#   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
116 -# # NOTE: run clamd under the same user as amavisd;  match the socket
117 -# # name (LocalSocket) in clamav.conf to the socket name in this entry
118 -# # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],
119 +  ['Clam Antivirus-clamd',
120 +    \&ask_daemon, ["CONTSCAN {}\n", '/var/lib/clamav/clamd.socket'],
121 +    qr/\bOK$/, qr/\bFOUND$/,
122 +    qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
123 +
124 +# NOTE: match the socket name in clamav.conf to the socket name in this entry
125  
126  # ### http://www.openantivirus.org/
127  # ['OpenAntiVirus ScannerDaemon (OAV)',
128 @@ -1316,9 +1322,10 @@
129      '-sec -nex {}', [0], [100],
130      qr/was infected by virus (.+)/ ],
131  
132 -  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
133 -    '-s {}/*', [0], [1,2],
134 -    qr/--[ \t]*(.+)/ ], 
135 +#  Moved to secondary scanner
136 +#  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
137 +#    '-s {}/*', [0], [1,2],
138 +#    qr/--[ \t]*(.+)/ ], 
139  
140    ['MkS_Vir daemon',
141      'mksscan', '-s -q {}', [0], [1..7],
142 @@ -1444,6 +1451,12 @@
143  # ],
144  # # other options to consider: -mime -oe -idedir=/usr/local/sav
145  
146 +   ['MkS_Vir for Linux (beta)', ['mks32','mks'],
147 +     '-s {}/*', [0], [1,2],
148 +     qr/--[ \t]*(.+)/ ],
149 +
150 + );
151 +
152  # always succeeds (uncomment to consider mail clean if all other scanners fail)
153  # ['always-clean', sub {0}],
154  
This page took 0.046737 seconds and 3 git commands to generate.