sa-update - automate SpamAssassin rule updates
sa-update [options]
Options:
--updatedir path Directory to place updates, defaults to the SpamAssassin site rules directory (def: /var/lib/spamassassin/<version>)
--channel channel Retrieve updates from this channel Use multiple times for multiple channels --channelfile file Retrieve updates from the channels in the file
--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
-D, --debug [area=n,...] Print debugging messages -V, --version Print version -h, --help Print usage message
sa-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.
Update archives are verified by default using SHA1 hashes and GPG signatures.
sa-update
will use the system-wide rules update directory:
/home/jm/perl584/var/spamassassin/spamassassin/3.001008
If the updates should be stored in another location, specify it here.
sa-update --channel foo.example.com --channel bar.example.com
If you wish to skip GPG verification, you can use the --nogpg option to disable its use. Use of the following gpgkey-related options will override --nogpg and keep GPG verification enabled.
Note: Currently, only GPG itself is supported (ie: not PGP). v1.2 has been tested, although later versions ought to work as well.
By default, sa-update trusts key id 265FA05B
, which is the standard
SpamAssassin release key. Use this option to trust additional keys. See the
--import option for how to add keys to sa-update's keyring. For sa-update
to use a key it must be in sa-update's keyring and trusted.
For multiple keys, use the option multiple times. i.e.:
sa-update --gpgkey E580B363 --gpgkey 298BC7D0
Note: use of this option automatically enables GPG verification.
sa-update
GPG
keyring. By default, this is
/home/jm/perl584/etc/mail/spamassassin/sa-update-keys
key(s)
from a file into the sa-update keyring which is
located in the directory specified by --gpghomedir. Before using channels
from third party sources, you should use this option to import the GPG key(s)
used by those channels. You must still use the --gpgkey or --gpgkeyfile
options above to get sa-update to trust imported keys.
To import multiple keys, use the option multiple times. i.e.:
sa-update --import channel1-GPG.KEY --import channel2-GPG.KEY
Note: use of this option automatically enables GPG verification.
sa-update -D channel,gpg,http
For more information about which areas (also known as channels) are available, please see the documentation at:
C<http://wiki.apache.org/spamassassin/DebugChannels>
An exit code of 0
means an update was available, and was downloaded and
installed successfully.
An exit code of 1
means no fresh updates were available.
An exit code of 4
or higher, indicates that errors occurred while
attempting to download and extract updates.
Mail::SpamAssassin(3)
Mail::SpamAssassin::Conf(3)
spamassassin(1)
spamd(1)
<http://wiki.apache.org/spamassassin/RuleUpdates>
Mail::SpamAssassin
See <http://issues.apache.org/SpamAssassin/>
The Apache SpamAssassin(tm)
Project <http://spamassassin.apache.org/>
SpamAssassin is distributed under the Apache License, Version 2.0, as
described in the file LICENSE
included with the distribution.