]>
Commit | Line | Data |
---|---|---|
438a8f7b SP |
1 | diff -ur amavisd-new-2.6.3/amavisd.conf-sample amavisd-new-2.6.3.new/amavisd.conf-sample |
2 | --- amavisd-new-2.6.3/amavisd.conf-sample 2009-04-22 02:23:58.000000000 +0200 | |
3 | +++ amavisd-new-2.6.3.new/amavisd.conf-sample 2009-04-23 08:27:32.281461340 +0200 | |
60e8cb7d | 4 | @@ -63,7 +63,7 @@ |
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'), -H | |
9 | +$MYHOME = '/var/spool/amavis'; # (default is '/var/amavis'), -H | |
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 | @@ -74,16 +74,16 @@ | |
14 | ||
15 | # Set the user and group to which the daemon will change if started as root | |
16 | # (otherwise just keeps the UID unchanged, and these settings have no effect): | |
17 | -$daemon_user = 'vscan'; # (no default; customary: vscan or amavis), -u | |
18 | -$daemon_group = 'vscan'; # (no default; customary: vscan or amavis), -g | |
19 | +$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u | |
20 | +$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g | |
21 | ||
22 | # Runtime working directory (cwd), and a place where | |
23 | # temporary directories for unpacking mail are created. | |
f2c96aaf | 24 | # (no trailing slash, may be a scratch file system) |
60e8cb7d | 25 | -$TEMPBASE = $MYHOME; # (must be set if other config vars use is), -T |
438a8f7b | 26 | +$TEMPBASE = $MYHOME/runtime; # (must be set if other config vars use is), -T |
60e8cb7d | 27 | #$TEMPBASE = "$MYHOME/tmp"; # prefer to keep home dir /var/amavis clean? |
f2c96aaf | 28 | |
e16814fb | 29 | -#$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db", -D |
30 | +$db_home = "$MYHOME/db"; # DB databases directory, default "$MYHOME/db", -D | |
f2c96aaf | 31 | |
8f9da28f JR |
32 | # $helpers_home sets environment variable HOME, and is passed as option |
33 | # 'home_dir_for_helpers' to Mail::SpamAssassin::new. It should be a directory | |
60e8cb7d | 34 | @@ -93,8 +93,8 @@ |
97a5e95d | 35 | # Run the daemon in the specified chroot jail if nonempty: |
2183a73b | 36 | #$daemon_chroot_dir = $MYHOME; # (default is undef, meaning: do not chroot), -R |
97a5e95d | 37 | |
2183a73b PG |
38 | -#$pid_file = "$MYHOME/amavisd.pid"; # (default is "$MYHOME/amavisd.pid"), -P |
39 | -#$lock_file = "$MYHOME/amavisd.lock"; # (default is "$MYHOME/amavisd.lock"), -L | |
40 | +$pid_file = "/var/run/amavisd/amavisd.pid"; # (default is "$MYHOME/amavisd.pid"), -P | |
41 | +$lock_file = "/var/run/amavisd/amavisd.lock"; # (default is "$MYHOME/amavisd.lock"), -L | |
97a5e95d TP |
42 | |
43 | # set environment variables if you want (no defaults): | |
438a8f7b SP |
44 | $ENV{TMPDIR} = $TEMPBASE; # used for SA temporary files, by some decoders, etc. |
45 | @@ -114,6 +114,8 @@ | |
1dd6756d JR |
46 | #$forward_method = 'smtp:[127.0.0.1]:10025'; # where to forward checked mail |
47 | #$notify_method = $forward_method; # where to submit notifications | |
1dd6756d | 48 | |
2183a73b | 49 | +#@auth_mech_avail = ('PLAIN','LOGIN'); # empty list disables incoming AUTH |
9855952f | 50 | + |
e0c5f1c0 PG |
51 | #$os_fingerprint_method = 'p0f:127.0.0.1:2345'; # query p0f-analyzer.pl |
52 | ||
1dd6756d | 53 | # To make it possible for several hosts to share one content checking daemon, |
438a8f7b | 54 | @@ -173,7 +175,7 @@ |
e8d05b10 MK |
55 | # and see further down what these two lookup lists really mean. |
56 | # | |
1d554b7d JR |
57 | # @bypass_virus_checks_maps = (1); # controls running of anti-virus code |
58 | -# @bypass_spam_checks_maps = (1); # controls running of anti-spam code | |
59 | +@bypass_spam_checks_maps = (1); # controls running of anti-spam code | |
60 | # $bypass_decode_parts = 1; # controls running of decoders&dearchivers | |
e8d05b10 MK |
61 | # |
62 | # Any setting can be changed with a new assignment, so make sure | |
438a8f7b | 63 | @@ -223,8 +225,8 @@ |
2183a73b PG |
64 | # AMAVIS-CLIENT PROTOCOL INPUT SETTINGS (e.g. with amavisd-release, or |
65 | # sendmail milter through helper clients like amavis-milter.c and amavis.c) | |
66 | # option(s) -p overrides $inet_socket_port and $unix_socketname | |
97a5e95d | 67 | -$unix_socketname = "$MYHOME/amavisd.sock"; # amavis helper protocol socket |
e0c5f1c0 | 68 | -#$unix_socketname = undef; # disable listening on a unix socket |
97a5e95d | 69 | +#$unix_socketname = "/var/run/amavisd/amavisd.sock"; # amavis helper protocol socket |
e0c5f1c0 | 70 | +$unix_socketname = undef; # disable listening on a unix socket |
97a5e95d TP |
71 | # (default is undef, i.e. disabled) |
72 | # (usual setting is $MYHOME/amavisd.sock) | |
e0c5f1c0 | 73 | |
438a8f7b | 74 | @@ -307,7 +309,7 @@ |
e0c5f1c0 | 75 | # choose from: emerg, alert, crit, err, warning, notice, info, debug |
4395c06f MK |
76 | |
77 | # Log file (if not using syslog) | |
78 | -$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log) | |
2183a73b | 79 | +#$LOGFILE = "$MYHOME/amavis.log"; # (defaults to empty, no log) |
4395c06f MK |
80 | |
81 | #NOTE: levels are not strictly observed and are somewhat arbitrary | |
82 | # 0: startup/exit/failure messages, viruses detected | |
438a8f7b | 83 | @@ -316,7 +318,7 @@ |
e8d05b10 MK |
84 | # 3: server, client |
85 | # 4: decompose parts | |
86 | # 5: more debug details | |
2183a73b PG |
87 | -$log_level = 2; # (defaults to 0), -d |
88 | +#$log_level = 2; # (defaults to 0), -d | |
e8d05b10 MK |
89 | |
90 | # Customizable template for the most interesting log file entry (e.g. with | |
91 | # $log_level=0) (take care to properly quote Perl special characters like '\') | |
438a8f7b | 92 | @@ -694,7 +696,8 @@ |
eda82b86 | 93 | # or a directory (no trailing slash) |
7f7d88d2 | 94 | # (the default value is undef, meaning no quarantine) |
66ce8ece | 95 | # |
2183a73b PG |
96 | -$QUARANTINEDIR = '/var/virusmails'; # -Q |
97 | +#$QUARANTINEDIR = '/var/virusmails'; # -Q | |
98 | +$QUARANTINEDIR = '/var/spool/amavis/virusmails'; # -Q | |
eda82b86 | 99 | |
e0c5f1c0 PG |
100 | #$quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine |
101 | ||
438a8f7b SP |
102 | @@ -1918,16 +1921,15 @@ |
103 | # ### http://www.csupomona.edu/~henson/www/projects/SAVI-Perl/ | |
e8d05b10 MK |
104 | # ['Sophos SAVI', \&sophos_savi ], |
105 | ||
438a8f7b | 106 | -# ### http://www.clamav.net/ |
f2c96aaf | 107 | -# ['ClamAV-clamd', |
8ef44a08 | 108 | -# \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"], |
438a8f7b | 109 | -# qr/\bOK$/m, qr/\bFOUND$/m, |
a1ff9748 | 110 | -# qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ], |
e16814fb | 111 | -# # NOTE: run clamd under the same user as amavisd, or run it under its own |
112 | -# # uid such as clamav, add user clamav to the amavis group, and then add | |
113 | -# # AllowSupplementaryGroups to clamd.conf; | |
114 | -# # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in | |
115 | -# # this entry; when running chrooted one may prefer socket "$MYHOME/clamd". | |
116 | +['ClamAV-clamd', | |
117 | + \&ask_daemon, ["CONTSCAN {}\n", "/var/lib/clamav/clamd.socket"], | |
118 | + qr/\bOK$/, qr/\bFOUND$/, | |
119 | + qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], | |
120 | +# NOTE: run clamd under the same user as amavisd, or run it under its own | |
121 | +# uid such as clamav, add user clamav to the amavis group, and then add | |
122 | +# AllowSupplementaryGroups to clamd.conf; | |
123 | +# NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in | |
124 | +# this entry; when running chrooted one may prefer socket "$MYHOME/clamd". | |
e8d05b10 | 125 | |
4f91afad | 126 | # ### http://www.clamav.net/ and CPAN (memory-hungry! clamd is preferred) |
438a8f7b SP |
127 | # # note that Mail::ClamAV requires perl to be build with threading! |
128 | @@ -2107,16 +2109,21 @@ | |
2183a73b PG |
129 | # NOTE: requires suid wrapper around inocmd32; consider flag: -mod reviewer |
130 | # see http://marc.theaimsgroup.com/?l=amavis-user&m=109229779912783 | |
e8d05b10 | 131 | |
4f91afad | 132 | - ### http://mks.com.pl/english.html |
2183a73b PG |
133 | - ['MkS_Vir for Linux (beta)', ['mks32','mks'], |
134 | - '-s {}/*', [0], [1,2], | |
a1ff9748 | 135 | - qr/--[ \t]*(.+)/m ], |
4395c06f | 136 | +# Moved to secondary scanner |
4f91afad | 137 | +# ### http://mks.com.pl/english.html |
2183a73b PG |
138 | +# ['MkS_Vir for Linux (beta)', ['mks32','mks'], |
139 | +# '-s {}/*', [0], [1,2], | |
a1ff9748 | 140 | +# qr/--[ \t]*(.+)/m ], |
4395c06f | 141 | |
2183a73b PG |
142 | ### http://mks.com.pl/english.html |
143 | ['MkS_Vir daemon', 'mksscan', | |
438a8f7b SP |
144 | '-s -q {}', [0], [1..7], |
145 | qr/^... (\S+)/m ], | |
4395c06f | 146 | |
e0c5f1c0 PG |
147 | + ['MkS_Vir for Linux (beta)', ['mks32','mks'], |
148 | + '-s {}/*', [0], [1,2], | |
a1ff9748 | 149 | + qr/--[ \t]*(.+)/m ], |
8ef44a08 | 150 | + |
438a8f7b SP |
151 | # ### http://www.nod32.com/, version v2.52 (old) |
152 | # ['ESET NOD32 for Linux Mail servers', | |
153 | # ['/opt/eset/nod32/bin/nod32cli', 'nod32cli'], | |
154 | Tylko w amavisd-new-2.6.3.new/: amavisd.conf-sample~ |