source: npl/mailserver/dspam/dspam-3.10.2/contrib/dspam_maintenance/dspam_maintenance.1

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 5.0 KB
Line 
1.\" $Id: dspam_maintenance.1,v 1.0 2010/04/26 22:28:31 sbajic Exp $
2.\"  -*- nroff -*-
3.\"
4.\" dspam_maintenance
5.\"
6.\" Authors:    Julien Valroff <julien@kirya.net>
7.\"             Stevan Bajic <stevan@bajic.ch>
8.\"
9.\" Copyright (c) 2010 Julien Valroff <julien@kirya.net> for the
10.\" for the Debian project (but may be used by others).
11.\"
12.TH dspam_maintenance 1  "Apr 26, 2010" "dspam_maintenance" "User Commands"
13
14.SH NAME
15.B dspam_maintenance \c
16\- remove old signatures and unimportant tokens from the DSPAM storage backend
17
18.SH SYNOPSIS
19.na
20.B dspam_maintenance
21[\c
22.B \--profile\c
23=PROFILE\c
24]
25[\c
26.B \--logdays\c
27=no_of_days\c
28]
29[\c
30.B \--signatures\c
31=no_of_days\c
32]
33[\c
34.B \--neutral\c
35=no_of_days\c
36]
37[\c
38.B \--unused\c
39=no_of_days\c
40]
41[\c
42.B \--hapaxes\c
43=no_of_days\c
44]
45[\c
46.B \--hits1s\c
47=no_of_days\c
48]
49[\c
50.B \--hits1i\c
51=no_of_days\c
52]
53[\c
54.B \--without-sql-purge\c
55]
56[\c
57.B \--with-sql-automatization\c
58]
59[\c
60.B \--with-sql-autoupdate\c
61]
62[\c
63.B \--purgescriptdir\
64=directory\c
65]
66[\c
67.B \--with-all-drivers\c
68]
69[\c
70.B \--verbose\c
71]
72
73.ad
74.SH DESCRIPTION
75.LP
76.B dspam_maintenance
77is used to remove old signatures/tokens and unimportant tokens from the DSPAM
78storage backend and purge old log entries in user and system logs.
79
80This script can be called from the command line or run from within cron. Either
81add a line in your crontab or add this script in your cron.{hourly,daily,weekly,monthly}.
82Running this script every hour might not be the best idea but it's your decision
83if you want to do so.
84
85.SH OPTIONS
86.LP
87
88.ne 3
89.TP
90.BI \-\-profile= PROFILE\c
91.IP
92Specify a storage profile from dspam.conf. The storage profile selected will be used
93for all database connectivity.
94.IP
95.B NOTE: \c
96See
97.B dspam.conf \c
98for more information.
99
100.ne 3
101.TP
102.BI \-\-logdays= no_of_days\c
103.IP
104All log entries older than
105.B no_of_days \c
106days will be removed.
107.IP
108.B NOTE: \c
109Default is
110.B 31 \c
111days. (for more info:
112.B man dspam_logrotate\c
113)
114
115.ne 3
116.TP
117.BI \-\-signatures= no_of_days\c
118.IP
119All signatures older than
120.B no_of_days\c
121days will be removed.
122.IP
123.B NOTE: \c
124Default value is set by the
125.B PurgeSignatures \c
126option in dspam.conf, if this option is not set, the default value is
127.B 14 \c
128days. This option is only used for the Hash driver.
129
130.ne 3
131.TP
132.BI \-\-neutral= no_of_days\c
133.IP
134Deletes all tokens from the target users database whose probability is
135between 0.35 and 0.65 (fairly neutral, useless data).
136.IP
137.B NOTE: \c
138Default value is set by the
139.B PurgeNeutral \c
140option in dspam.conf, if this option is not set, the default value is
141.B 90 \c
142days.
143
144.ne 3
145.TP
146.BI \-\-unused= no_of_days\c
147.IP
148Remove stale tokens which have not been used for a long period of time.
149.IP
150.B NOTE: \c
151Default value is set by the
152.B PurgeUnused \c
153option in dspam.conf, if this option is not set, the default value is
154.B 90 \c
155days.
156
157.ne 3
158.TP
159.BI \-\-hapaxes= no_of_days\c
160.IP
161Remove tokens with a total hit count below 5 (which will be assigned a hapaxial
162value by DSPAM).
163.IP
164.B NOTE: \c
165Default value is set by the
166.B PurgeHapaxes \c
167option in dspam.conf, if this option is not set, the default value is
168.B 30 \c
169days.
170
171.ne 3
172.TP
173.BI \-\-hits1s= no_of_days\c
174.IP
175Remove tokens with a single SPAM hit.
176.IP
177.B NOTE: \c
178Default value is set by the
179.B PurgeHits1S \c
180option in dspam.conf, if this option is not set, the default value is
181.B 15 \c
182days.
183
184.ne 3
185.TP
186.BI \-\-hits1i= no_of_days\c
187.IP
188Remove tokens with a single INNOCENT hit.
189.IP
190.B NOTE: \c
191Default value is set by the
192.B PurgeHits1I \c
193option in dspam.conf, if this option is not set, the default value is
194.B 15 \c
195days.
196
197.ne 3
198.TP
199.BI \-\-without\-sql\-purge\c
200.IP
201Do not use SQL based purging. Only run dspam_clean.
202.IP
203.B NOTE: \c
204Default is
205.B off \c
206(aka: use SQL based purging).
207
208.ne 3
209.TP
210.BI \-\-with\-sql\-optimization
211.IP
212Run VACUUM (for PostgreSQL/SQLite) and/or OPTIMIZE (for MySQL).
213.IP
214.B NOTE: \c
215Default is
216.B off \c
217(aka: do not use optimizations).
218
219.ne 3
220.TP
221.BI \-\-with\-sql\-autoupdate
222.IP
223Run SQL based purging with purge day values passed to dspam_maintenance.
224.IP
225.B NOTE: \c
226Default is
227.B off \c
228(aka: do not attempt to modify SQL instructions).
229
230.ne 3
231.TP
232.BI \-\-purgescriptdir= directory
233.IP
234Space separated list of directories where to search for SQL files
235used for the SQL based purging.
236
237.ne 3
238.TP
239.BI \-\-with\-all\-drivers
240.IP
241Process all installed storage drivers (not just the active driver).
242.IP
243.B NOTE: \c
244Default is
245.B true \c
246(aka: process all installed drivers).
247
248.ne 3
249.TP
250.BI \-\-verbose
251.IP
252Verbose output while running maintenance script.
253
254.SH EXIT VALUE
255.LP
256.ne 3
257.PD 0
258.TP
259.B 0
260Operation was successful.
261.ne 3
262.TP
263.B other
264Operation resulted in an error. Run the script with
265.B \-\-verbose \c
266to get more information about error.
267.PD
268
269.SH COPYRIGHT
270Copyright \(co 2002\-2010 DSPAM Project
271.br
272All rights reserved.
273.br
274
275For more information, see http://dspam.sourceforge.net.
276
277.SH SEE ALSO
278.BR dspam (1),
279.BR dspam_admin (1),
280.BR dspam_clean (1),
281.BR dspam_crc (1),
282.BR dspam_dump (1),
283.BR dspam_logrotate (1),
284.BR dspam_merge (1),
285.BR dspam_stats (1),
286.BR dspam_train (1)
Note: See TracBrowser for help on using the repository browser.