]> git.pld-linux.org Git - packages/amavisd-new.git/blob - amavisd-new-config.patch
- add tmpwatch configuration
[packages/amavisd-new.git] / amavisd-new-config.patch
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 @@
4  # $MYHOME serves as a quick default for some other configuration settings.
5  # More refined control is available with each individual setting further down.
6  # $MYHOME is not used directly by the program. No trailing slash!
7 -#$MYHOME = '/var/lib/amavis';   # (default is '/var/amavis')
8 +$MYHOME = '/var/spool/amavis';   # (default is '/var/amavis')
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)
14 +#$mydomain = 'example.com';      # (no useful default)
15 +
16 +# This seems to be prefixed to host's domain name.
17 +# You may get mail rejects of virus information as send from not
18 +# existing host ( virusalert@localhost.whatever.your.domain.is )
19 +$mydomain = 'mail.whatever.your.domain.is';      # (no useful default)
20  
21  # $myhostname = 'host.example.com';  # fqdn of this host, default by uname(3)
22  
23  # Set the user and group to which the daemon will change if started as root
24  # (otherwise just keeps the UID unchanged, and these settings have no effect):
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)
29  
30  # Runtime working directory (cwd), and a place where
31  # temporary directories for unpacking mail are created.
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?
35 +$TEMPBASE = "$MYHOME/runtime";         # (must be set if other config vars use is)
36  
37 -#$db_home = "$MYHOME/db";      # DB databases directory, default "$MYHOME/db"
38 +$db_home = "$MYHOME/db";       # DB databases directory, default "$MYHOME/db"
39  
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
42 @@ -93,8 +97,8 @@
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
53 @@ -112,6 +116,8 @@
54  #$forward_method = 'smtp:[127.0.0.1]:10025';  # where to forward checked mail
55  #$notify_method = $forward_method;            # where to submit notifications
56  
57 +# @auth_mech_avail = ('PLAIN','LOGIN'); # empty list disables incoming AUTH
58 +
59  #$os_fingerprint_method = 'p0f:127.0.0.1:2345';  # query p0f-analyzer.pl
60  
61  # To make it possible for several hosts to share one content checking daemon,
62 @@ -171,7 +177,7 @@
63  # and see further down what these two lookup lists really mean.
64  #
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
68  #
69  # Any setting can be changed with a new assignment, so make sure
70  # you do not unintentionally override these settings further down!
71 @@ -217,8 +223,8 @@
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
76 -#$unix_socketname = undef;        # disable listening on a unix socket
77 +#$unix_socketname = "/var/run/amavisd/amavisd.sock"; # amavis helper protocol socket
78 +$unix_socketname = undef;        # disable listening on a unix socket
79                                    # (default is undef, i.e. disabled)
80                                    # (usual setting is $MYHOME/amavisd.sock)
81  
82 @@ -301,7 +307,7 @@
83             # choose from: emerg, alert, crit, err, warning, notice, info, debug
84  
85  # Log file (if not using syslog)
86 -$LOGFILE = "$MYHOME/amavis.log";  # (defaults to empty, no log)
87 +#$LOGFILE = "/var/log/amavis.log";  # (defaults to empty, no log)
88  
89  #NOTE: levels are not strictly observed and are somewhat arbitrary
90  # 0: startup/exit/failure messages, viruses detected
91 @@ -310,7 +316,7 @@
92  # 3: server, client
93  # 4: decompose parts
94  # 5: more debug details
95 -$log_level = 2;                  # (defaults to 0)
96 +#$log_level = 2;                 # (defaults to 0)
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 '\')
100 @@ -684,7 +690,8 @@
101  #   or a directory (no trailing slash)
102  #   (the default value is undef, meaning no quarantine)
103  #
104 -$QUARANTINEDIR = '/var/virusmails';
105 +#$QUARANTINEDIR = '/var/virusmails';
106 +$QUARANTINEDIR = '/var/spool/amavis/virusmails';
107  
108  #$quarantine_subdir_levels = 1;  # add level of subdirs to disperse quarantine
109  
110 @@ -1788,13 +1795,13 @@
111  # ['Sophos SAVI', \&sophos_savi ],
112  
113  # ### http://www.clamav.net/
114 -# ['ClamAV-clamd',
115 -#   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
116 -#   qr/\bOK$/, qr/\bFOUND$/,
117 -#   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
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
120 -# # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],
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"],
128  
129  # ### http://www.clamav.net/ and CPAN  (memory-hungry! clamd is preferred)
130  # ['Mail::ClamAV', \&ask_clamav, "*", [0], [1], qr/^INFECTED: (.+)/],
131 @@ -1956,10 +1963,11 @@
132      '-s {}/*', [0], [1,2],
133      qr/--[ \t]*(.+)/ ],
134  
135 -  ### http://mks.com.pl/english.html
136 -  ['MkS_Vir daemon', 'mksscan',
137 -    '-s -q {}', [0], [1..7],
138 -    qr/^... (\S+)/ ],
139 +#  Moved to secondary scanner
140 +#  ### http://mks.com.pl/english.html
141 +#  ['MkS_Vir daemon', 'mksscan',
142 +#    '-s -q {}', [0], [1..7],
143 +#    qr/^... (\S+)/ ],
144  
145    ### http://www.nod32.com/
146    ['ESET Software NOD32 Command Line Interface v 2.51', 'nod32cli',
147 @@ -2157,6 +2165,10 @@
148  # ],
149  # # other options to consider: -mime -oe -idedir=/usr/local/sav
150  
151 +  ['MkS_Vir for Linux (beta)', ['mks32','mks'],
152 +       '-s {}/*', [0], [1,2],
153 +       qr/--[ \t]*(.+)/ ],
154 +
155  # always succeeds (uncomment to consider mail clean if all other scanners fail)
156  # ['always-clean', sub {0}],
157  
This page took 0.040862 seconds and 3 git commands to generate.