|
NAMEsa-update - automate SpamAssassin rule updates SYNOPSISsa-update [options] Options: --channel channel Retrieve updates from this channel
Use multiple times for multiple channels
--channelfile file Retrieve updates from the channels in the file
--checkonly Check for update availability, do not install
--install file Install updates directly from this file. Signature
verification will use "file.asc", or "file.sha512"
or "file.sha256".
--allowplugins Allow updates to load plugin code (DANGEROUS)
--gpgkey key Trust the key id to sign releases
Use multiple times for multiple keys
--gpgkeyfile file Trust the key ids in the file to sign releases
--gpghomedir path Store the GPG keyring in this directory
--gpg and --nogpg Use (or do not use) GPG to verify updates
(--gpg is assumed by use of the above
--gpgkey and --gpgkeyfile options)
--import file Import GPG key(s) from file into sa-update's
keyring. Use multiple times for multiple files
--updatedir path Directory to place updates, defaults to the
SpamAssassin site rules directory
(default: /var/db/spamassassin/4.000002)
--refreshmirrors Force the MIRRORED.BY file to be updated
--forcemirror url Use a specific mirror instead of downloading from
official mirrors
--httputil util Force used download tool. By default first found
from these is used: curl, wget, fetch, lwp
--score-multiplier x.x Adjust all scores from update channel, multiply
with given value (integer or float).
--score-limit x.x Adjust all scores from update channel, limit
to given value (integer or float). Limiting
is done after possible multiply operation.
-D, --debug [area=n,...] Print debugging messages
-v, --verbose Be verbose, like print updated channel names;
For more verbosity specify multiple times
-V, --version Print version
-h, --help Print usage message
-4 Force using the inet protocol (IPv4), not inet6
-6 Force using the inet6 protocol (IPv6), not inet
DESCRIPTIONsa-update automates the process of downloading and installing new rules and configuration, based on channels. The default channel is updates.spamassassin.org, which has updated rules since the previous release. NOTE: channel names are domain names, but DO NOT typically have any DNS records other than (maybe) NS records. There is a tree of records below that name which denote the SpamAssassin version and resolve that name to the version number of the latest rules, e.g. to find the latest update version number for SpamAssassin v4.0.0: $ host -t txt 0.0.4.updates.spamassassin.org 0.0.4.updates.spamassassin.org is an alias for 3.3.3.updates.spamassassin.org. 3.3.3.updates.spamassassin.org descriptive text "1907730" That also illuminates the fact that the current ruleset is supposed to be backward-compatible to v3.3.3. Update archives are verified using GPG signatures by default. If GPG is disabled (not recommended), file integrity is checked with SHA512 or SHA256 checksums. Note that "sa-update" will not restart "spamd" or otherwise cause a scanner to reload the now-updated ruleset automatically. Instead, "sa-update" is typically used in something like the following manner: sa-update && /etc/init.d/spamassassin reload This works because "sa-update" only returns an exit status of 0 if it has successfully downloaded and installed an updated ruleset. The program sa-update uses the underlying operating system umask for the updated rule files it installs. You may wish to run sa-update from a script that sets the umask prior to calling sa-update. For example: #!/bin/sh
umask 022
sa-update
OPTIONS
EXIT CODESIn absence of a --checkonly option, an exit code of 0 means: an update was available, and was downloaded and installed successfully. If --checkonly was specified, an exit code of 0 means: an update was available. An exit code of 1 means no fresh updates were available. An exit code of 2 means that at least one update is available but that a lint check of the site pre files failed. The site pre files must pass a lint check before any updates are attempted. An exit code of 3 means that at least one update succeeded while other channels failed. If using sa-compile, you should proceed with it. An exit code of 4 or higher, indicates that errors occurred while attempting to download and extract updates, and no channels were updated. SEE ALSOMail::SpamAssassin(3) Mail::SpamAssassin::Conf(3) spamassassin(1) spamd(1) <https://wiki.apache.org/spamassassin/RuleUpdates> PREREQUISITES"Mail::SpamAssassin" BUGSSee <https://bz.apache.org/SpamAssassin/> AUTHORSThe Apache SpamAssassin(tm) Project <https://spamassassin.apache.org/> LICENSE AND COPYRIGHTSpamAssassin is distributed under the Apache License, Version 2.0, as described in the file "LICENSE" included with the distribution. Copyright (C) 2015 The Apache Software Foundation
|