]>
Commit | Line | Data |
---|---|---|
f2c96aaf JR |
1 | diff -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 | |
4 | @@ -51,25 +51,29 @@ | |
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 | ||
38 | #$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db" | |
39 | ||
8ef44a08 | 40 | @@ -143,7 +148,8 @@ |
e8d05b10 MK |
41 | # and see further down what these two lookup lists really mean. |
42 | # | |
f2c96aaf JR |
43 | # @bypass_virus_checks_maps = (1); # uncomment to DISABLE anti-virus code |
44 | -# @bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code | |
45 | +@bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code | |
4395c06f | 46 | + |
e8d05b10 MK |
47 | # |
48 | # Any setting can be changed with a new assignment, so make sure | |
49 | # you do not unintentionally override these settings further down! | |
8ef44a08 | 50 | @@ -267,7 +273,7 @@ |
51 | #$SYSLOG_LEVEL = 'user.info'; # (facility.priority, default 'mail.info') | |
4395c06f MK |
52 | |
53 | # Log file (if not using syslog) | |
54 | -$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log) | |
55 | +# $LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log) | |
56 | ||
57 | #NOTE: levels are not strictly observed and are somewhat arbitrary | |
58 | # 0: startup/exit/failure messages, viruses detected | |
8ef44a08 | 59 | @@ -276,7 +282,7 @@ |
e8d05b10 MK |
60 | # 3: server, client |
61 | # 4: decompose parts | |
62 | # 5: more debug details | |
63 | -$log_level = 2; # (defaults to 0) | |
4395c06f | 64 | +# $log_level = 2; # (defaults to 0) |
e8d05b10 MK |
65 | |
66 | # Customizable template for the most interesting log file entry (e.g. with | |
67 | # $log_level=0) (take care to properly quote Perl special characters like '\') | |
f2c96aaf | 68 | @@ -408,22 +414,22 @@ |
e8d05b10 MK |
69 | # Bounces or rejects produce non-delivery status notification anyway. |
70 | ||
71 | # Notify virus sender? | |
72 | -#$warnvirussender = 1; # (defaults to false (undef)) | |
73 | +$warnvirussender = 1; # (defaults to false (undef)) | |
74 | ||
75 | # Notify spam sender? | |
76 | -#$warnspamsender = 1; # (defaults to false (undef)) | |
77 | +$warnspamsender = 1; # (defaults to false (undef)) | |
78 | ||
79 | # Notify sender of banned files? | |
80 | -#$warnbannedsender = 1; # (defaults to false (undef)) | |
81 | +$warnbannedsender = 1; # (defaults to false (undef)) | |
82 | ||
83 | # Notify sender of syntactically invalid header containing non-ASCII characters? | |
8ef44a08 | 84 | -#$warnbadhsender = 1; # (defaults to false (undef)) |
85 | +# $warnbadhsender = 1; # (defaults to false (undef)) | |
e8d05b10 | 86 | |
f2c96aaf | 87 | # Notify virus (or banned files or bad headers) RECIPIENT? |
e8d05b10 MK |
88 | # (not very useful, but some policies demand it) |
89 | -#$warnvirusrecip = 1; # (defaults to false (undef)) | |
90 | -#$warnbannedrecip = 1; # (defaults to false (undef)) | |
f2c96aaf | 91 | -#$warnbadhrecip = 1; # (defaults to false (undef)) |
e8d05b10 MK |
92 | +$warnvirusrecip = 1; # (defaults to false (undef)) |
93 | +$warnbannedrecip = 1; # (defaults to false (undef)) | |
f2c96aaf | 94 | +$warnbadhrecip = 1; # (defaults to false (undef)) |
e8d05b10 MK |
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/ |
f2c96aaf | 112 | -# ['ClamAV-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 |