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
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')
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)
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)
22 # $myhostname = 'host.example.com'; # fqdn of this host, default by uname(3)
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)
31 # Runtime working directory (cwd), and a place where
32 # temporary directories for unpacking mail are created.
34 # and see further down what these two lookup lists really mean.
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
41 # Any setting can be changed with a new assignment, so make sure
42 # you do not unintentionally override these settings further down!
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:
47 -#read_hash(\%local_domains, '/var/amavis/local_domains');
48 +#read_hash(\%local_domains, '/var/spool/amavis/local_domains'); # PLD path
50 #or alternatively(B), using a list of regular expressions:
51 # $local_domains_re = new_RE( qr'[@.]example\.com$'i );
53 #$SYSLOG_LEVEL = 'user.info'; # (facility.priority, default 'mail.info')
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)
59 #NOTE: levels are not strictly observed and are somewhat arbitrary
60 # 0: startup/exit/failure messages, viruses detected
64 # 5: more debug details
65 -$log_level = 2; # (defaults to 0)
66 +# $log_level = 2; # (defaults to 0)
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 '\')
71 # Bounces or rejects produce non-delivery status notification anyway.
73 # Notify virus sender?
74 -#$warnvirussender = 1; # (defaults to false (undef))
75 +$warnvirussender = 1; # (defaults to false (undef))
78 -#$warnspamsender = 1; # (defaults to false (undef))
79 +$warnspamsender = 1; # (defaults to false (undef))
81 # Notify sender of banned files?
82 -#$warnbannedsender = 1; # (defaults to false (undef))
83 +$warnbannedsender = 1; # (defaults to false (undef))
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))
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))
96 # Notify also non-local virus/banned recipients if $warn*recip is true?
97 # (including those not matching local_domains*)
99 # or a directory (no trailing slash)
100 # (the default value is undef, meaning no quarantine)
102 -$QUARANTINEDIR = '/var/virusmails';
103 +# $QUARANTINEDIR = '/var/virusmails';
104 +$QUARANTINEDIR = '/var/spool/amavis/virusmails';
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 ],
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$/ ],
124 +# NOTE: match the socket name in clamav.conf to the socket name in this entry
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 (.+)/ ],
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]*(.+)/ ],
141 'mksscan', '-s -q {}', [0], [1..7],
142 @@ -1444,6 +1451,12 @@
144 # # other options to consider: -mime -oe -idedir=/usr/local/sav
146 + ['MkS_Vir for Linux (beta)', ['mks32','mks'],
147 + '-s {}/*', [0], [1,2],
148 + qr/--[ \t]*(.+)/ ],
152 # always succeeds (uncomment to consider mail clean if all other scanners fail)
153 # ['always-clean', sub {0}],