]>
Commit | Line | Data |
---|---|---|
8ef44a08 | 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 | |
d20c1921 | 3 | +++ amavisd-new-20030616~/amavisd.conf Sun Mar 14 13:37:30 2004 |
8ef44a08 | 4 | @@ -51,19 +51,24 @@ |
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') |
e8d05b10 | 9 | +$MYHOME = '/var/spool/amavis/runtime'; # (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. | |
8ef44a08 | 33 | @@ -143,7 +148,8 @@ |
e8d05b10 MK |
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 | |
4395c06f | 39 | + |
e8d05b10 MK |
40 | # |
41 | # Any setting can be changed with a new assignment, so make sure | |
42 | # you do not unintentionally override these settings further down! | |
8ef44a08 | 43 | @@ -179,7 +185,7 @@ |
7f7d88d2 JR |
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: | |
eda82b86 | 46 | # |
7f7d88d2 | 47 | -#read_hash(\%local_domains, '/var/amavis/local_domains'); |
4395c06f | 48 | +#read_hash(\%local_domains, '/var/spool/amavis/local_domains'); # PLD path |
7f7d88d2 JR |
49 | |
50 | #or alternatively(B), using a list of regular expressions: | |
51 | # $local_domains_re = new_RE( qr'[@.]example\.com$'i ); | |
8ef44a08 | 52 | @@ -267,7 +273,7 @@ |
53 | #$SYSLOG_LEVEL = 'user.info'; # (facility.priority, default 'mail.info') | |
4395c06f MK |
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 | |
8ef44a08 | 61 | @@ -276,7 +282,7 @@ |
e8d05b10 MK |
62 | # 3: server, client |
63 | # 4: decompose parts | |
64 | # 5: more debug details | |
65 | -$log_level = 2; # (defaults to 0) | |
4395c06f | 66 | +# $log_level = 2; # (defaults to 0) |
e8d05b10 MK |
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 '\') | |
8ef44a08 | 70 | @@ -408,21 +414,21 @@ |
e8d05b10 MK |
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? | |
8ef44a08 | 86 | -#$warnbadhsender = 1; # (defaults to false (undef)) |
87 | +# $warnbadhsender = 1; # (defaults to false (undef)) | |
e8d05b10 MK |
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*) | |
8ef44a08 | 98 | @@ -516,7 +522,8 @@ |
eda82b86 | 99 | # or a directory (no trailing slash) |
7f7d88d2 | 100 | # (the default value is undef, meaning no quarantine) |
66ce8ece | 101 | # |
eda82b86 | 102 | -$QUARANTINEDIR = '/var/virusmails'; |
4395c06f | 103 | +# $QUARANTINEDIR = '/var/virusmails'; |
eda82b86 JR |
104 | +$QUARANTINEDIR = '/var/spool/amavis/virusmails'; |
105 | ||
7f7d88d2 JR |
106 | #$virus_quarantine_method = "local:virus-%i-%n"; # default |
107 | #$spam_quarantine_method = "local:spam-%b-%i-%n"; # default | |
8ef44a08 | 108 | @@ -1193,13 +1200,12 @@ |
e8d05b10 MK |
109 | # ['Sophos SAVI', \&sophos_savi ], |
110 | ||
8ef44a08 | 111 | # ### http://www.clamav.net/ |
e8d05b10 | 112 | -# ['Clam Antivirus-clamd', |
8ef44a08 | 113 | -# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"], |
e8d05b10 MK |
114 | -# qr/\bOK$/, qr/\bFOUND$/, |
115 | -# qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], | |
8ef44a08 | 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"], | |
e8d05b10 | 119 | + ['Clam Antivirus-clamd', |
4395c06f MK |
120 | + \&ask_daemon, ["CONTSCAN {}\n", '/var/lib/clamav/clamd.socket'], |
121 | + qr/\bOK$/, qr/\bFOUND$/, | |
122 | + qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], | |
123 | + | |
e8d05b10 MK |
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)', | |
8ef44a08 | 128 | @@ -1316,9 +1322,10 @@ |
e8d05b10 MK |
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]*(.+)/ ], | |
4395c06f MK |
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], | |
d20c1921 | 142 | @@ -1444,6 +1451,10 @@ |
4395c06f | 143 | # ], |
8ef44a08 | 144 | # # other options to consider: -mime -oe -idedir=/usr/local/sav |
4395c06f MK |
145 | |
146 | + ['MkS_Vir for Linux (beta)', ['mks32','mks'], | |
147 | + '-s {}/*', [0], [1,2], | |
148 | + qr/--[ \t]*(.+)/ ], | |
8ef44a08 | 149 | + |
150 | # always succeeds (uncomment to consider mail clean if all other scanners fail) | |
151 | # ['always-clean', sub {0}], | |
4395c06f | 152 |