]>
Commit | Line | Data |
---|---|---|
e0c5f1c0 PG |
1 | --- ./amavisd.conf-sample.org 2006-05-23 12:01:01.000000000 +0200 |
2 | +++ ./amavisd.conf-sample 2006-05-23 11:59:26.000000000 +0200 | |
3 | @@ -63,27 +63,31 @@ | |
7f7d88d2 JR |
4 | # $MYHOME serves as a quick default for some other configuration settings. |
5 | # More refined control is available with each individual setting further down. | |
2a7aba10 | 6 | # $MYHOME is not used directly by the program. No trailing slash! |
7f7d88d2 | 7 | -#$MYHOME = '/var/lib/amavis'; # (default is '/var/amavis') |
f2c96aaf | 8 | +$MYHOME = '/var/spool/amavis'; # (default is '/var/amavis') |
7f7d88d2 JR |
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) | |
4f91afad | 14 | +#$mydomain = 'example.com'; # (no useful default) |
4395c06f | 15 | + |
e8d05b10 | 16 | +# This seems to be prefixed to host's domain name. |
4395c06f | 17 | +# You may get mail rejects of virus information as send from not |
e8d05b10 | 18 | +# existing host ( virusalert@localhost.whatever.your.domain.is ) |
4395c06f | 19 | +$mydomain = 'mail.whatever.your.domain.is'; # (no useful default) |
7f7d88d2 | 20 | |
8ef44a08 | 21 | # $myhostname = 'host.example.com'; # fqdn of this host, default by uname(3) |
22 | ||
7f7d88d2 | 23 | # Set the user and group to which the daemon will change if started as root |
4395c06f | 24 | # (otherwise just keeps the UID unchanged, and these settings have no effect): |
4f91afad | 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) | |
7f7d88d2 JR |
29 | |
30 | # Runtime working directory (cwd), and a place where | |
31 | # temporary directories for unpacking mail are created. | |
f2c96aaf JR |
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? | |
e0c5f1c0 | 35 | +$TEMPBASE = "$MYHOME/runtime"; # (must be set if other config vars use is) |
f2c96aaf | 36 | |
8f9da28f | 37 | -#$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db" |
e0c5f1c0 | 38 | +$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db" |
f2c96aaf | 39 | |
8f9da28f JR |
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 | |
e0c5f1c0 | 42 | @@ -93,8 +97,8 @@ |
97a5e95d TP |
43 | # Run the daemon in the specified chroot jail if nonempty: |
44 | #$daemon_chroot_dir = $MYHOME; # (default is undef, meaning: do not chroot) | |
45 | ||
46 | -#$pid_file = "$MYHOME/amavisd.pid"; # (default is "$MYHOME/amavisd.pid") | |
47 | -#$lock_file = "$MYHOME/amavisd.lock"; # (default is "$MYHOME/amavisd.lock") | |
48 | +$pid_file = "/var/run/amavisd/amavisd.pid"; # (default is "$MYHOME/amavisd.pid") | |
49 | +$lock_file = "/var/run/amavisd/amavisd.lock"; # (default is "$MYHOME/amavisd.lock") | |
50 | ||
51 | # set environment variables if you want (no defaults): | |
52 | $ENV{TMPDIR} = $TEMPBASE; # wise to set TMPDIR, but not obligatory | |
e0c5f1c0 | 53 | @@ -112,6 +116,8 @@ |
1dd6756d JR |
54 | #$forward_method = 'smtp:[127.0.0.1]:10025'; # where to forward checked mail |
55 | #$notify_method = $forward_method; # where to submit notifications | |
1dd6756d | 56 | |
4f91afad | 57 | +# @auth_mech_avail = ('PLAIN','LOGIN'); # empty list disables incoming AUTH |
9855952f | 58 | + |
e0c5f1c0 PG |
59 | #$os_fingerprint_method = 'p0f:127.0.0.1:2345'; # query p0f-analyzer.pl |
60 | ||
1dd6756d | 61 | # To make it possible for several hosts to share one content checking daemon, |
e0c5f1c0 | 62 | @@ -171,7 +177,7 @@ |
e8d05b10 MK |
63 | # and see further down what these two lookup lists really mean. |
64 | # | |
f2c96aaf JR |
65 | # @bypass_virus_checks_maps = (1); # uncomment to DISABLE anti-virus code |
66 | -# @bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code | |
67 | +@bypass_spam_checks_maps = (1); # uncomment to DISABLE anti-spam code | |
e8d05b10 MK |
68 | # |
69 | # Any setting can be changed with a new assignment, so make sure | |
70 | # you do not unintentionally override these settings further down! | |
e0c5f1c0 | 71 | @@ -217,8 +223,8 @@ |
97a5e95d TP |
72 | # AMAVIS-CLIENT PROTOCOL INPUT SETTINGS (e.g. with sendmail milter) |
73 | # (used with amavis helper clients like amavis-milter.c and amavis.c, | |
74 | # NOT needed for Postfix or Exim or dual-sendmail - keep it undefined. | |
75 | -$unix_socketname = "$MYHOME/amavisd.sock"; # amavis helper protocol socket | |
e0c5f1c0 | 76 | -#$unix_socketname = undef; # disable listening on a unix socket |
97a5e95d | 77 | +#$unix_socketname = "/var/run/amavisd/amavisd.sock"; # amavis helper protocol socket |
e0c5f1c0 | 78 | +$unix_socketname = undef; # disable listening on a unix socket |
97a5e95d TP |
79 | # (default is undef, i.e. disabled) |
80 | # (usual setting is $MYHOME/amavisd.sock) | |
e0c5f1c0 PG |
81 | |
82 | @@ -301,7 +307,7 @@ | |
83 | # choose from: emerg, alert, crit, err, warning, notice, info, debug | |
4395c06f MK |
84 | |
85 | # Log file (if not using syslog) | |
86 | -$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log) | |
e0c5f1c0 | 87 | +#$LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log) |
4395c06f MK |
88 | |
89 | #NOTE: levels are not strictly observed and are somewhat arbitrary | |
90 | # 0: startup/exit/failure messages, viruses detected | |
e0c5f1c0 | 91 | @@ -310,7 +316,7 @@ |
e8d05b10 MK |
92 | # 3: server, client |
93 | # 4: decompose parts | |
94 | # 5: more debug details | |
95 | -$log_level = 2; # (defaults to 0) | |
e0c5f1c0 | 96 | +#$log_level = 2; # (defaults to 0) |
e8d05b10 MK |
97 | |
98 | # Customizable template for the most interesting log file entry (e.g. with | |
99 | # $log_level=0) (take care to properly quote Perl special characters like '\') | |
e0c5f1c0 | 100 | @@ -684,7 +690,8 @@ |
eda82b86 | 101 | # or a directory (no trailing slash) |
7f7d88d2 | 102 | # (the default value is undef, meaning no quarantine) |
66ce8ece | 103 | # |
eda82b86 | 104 | -$QUARANTINEDIR = '/var/virusmails'; |
e0c5f1c0 | 105 | +#$QUARANTINEDIR = '/var/virusmails'; |
eda82b86 JR |
106 | +$QUARANTINEDIR = '/var/spool/amavis/virusmails'; |
107 | ||
e0c5f1c0 PG |
108 | #$quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine |
109 | ||
110 | @@ -1788,13 +1795,13 @@ | |
e8d05b10 MK |
111 | # ['Sophos SAVI', \&sophos_savi ], |
112 | ||
8ef44a08 | 113 | # ### http://www.clamav.net/ |
f2c96aaf | 114 | -# ['ClamAV-clamd', |
8ef44a08 | 115 | -# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"], |
e8d05b10 MK |
116 | -# qr/\bOK$/, qr/\bFOUND$/, |
117 | -# qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], | |
9855952f SP |
118 | -# # NOTE: the easiest is to run clamd under the same user as amavisd; match the |
119 | -# # socket name (LocalSocket) in clamav.conf to the socket name in this entry | |
8ef44a08 | 120 | -# # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"], |
e0c5f1c0 PG |
121 | + ['Clam AntiVirus-clamd', |
122 | + \&ask_daemon, ["CONTSCAN {}\n", "/var/lib/clamav/clamd.socket"], | |
123 | + qr/\bOK$/, qr/\bFOUND$/, | |
124 | + qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], | |
125 | + # NOTE: the easiest is to run clamd under the same user as amavisd; match the | |
126 | + # socket name (LocalSocket) in clamav.conf to the socket name in this entry | |
127 | + # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"], | |
e8d05b10 | 128 | |
4f91afad | 129 | # ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred) |
130 | # ['Mail::ClamAV', \&ask_clamav, "*", [0], [1], qr/^INFECTED: (.+)/], | |
e0c5f1c0 PG |
131 | @@ -1956,10 +1963,11 @@ |
132 | '-s {}/*', [0], [1,2], | |
133 | qr/--[ \t]*(.+)/ ], | |
e8d05b10 | 134 | |
4f91afad | 135 | - ### http://mks.com.pl/english.html |
e0c5f1c0 PG |
136 | - ['MkS_Vir daemon', 'mksscan', |
137 | - '-s -q {}', [0], [1..7], | |
138 | - qr/^... (\S+)/ ], | |
4395c06f | 139 | +# Moved to secondary scanner |
4f91afad | 140 | +# ### http://mks.com.pl/english.html |
e0c5f1c0 PG |
141 | +# ['MkS_Vir daemon', 'mksscan', |
142 | +# '-s -q {}', [0], [1..7], | |
143 | +# qr/^... (\S+)/ ], | |
4395c06f | 144 | |
e0c5f1c0 PG |
145 | ### http://www.nod32.com/ |
146 | ['ESET Software NOD32 Command Line Interface v 2.51', 'nod32cli', | |
147 | @@ -2157,6 +2165,10 @@ | |
4395c06f | 148 | # ], |
8ef44a08 | 149 | # # other options to consider: -mime -oe -idedir=/usr/local/sav |
4395c06f | 150 | |
e0c5f1c0 PG |
151 | + ['MkS_Vir for Linux (beta)', ['mks32','mks'], |
152 | + '-s {}/*', [0], [1,2], | |
153 | + qr/--[ \t]*(.+)/ ], | |
8ef44a08 | 154 | + |
155 | # always succeeds (uncomment to consider mail clean if all other scanners fail) | |
156 | # ['always-clean', sub {0}], | |
4395c06f | 157 |