sa-update [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 filename      Install updates directly from this file. Signature
                                 verification will use "file.asc" and "file.sha1"
         --allowplugins          Allow updates to load plugin code
         --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/lib/spamassassin/3.003002)
         --refreshmirrors        Force the MIRRORED.BY file to be updated
         -D, --debug [area=n,...]  Print debugging messages
         -v, --verbose           Be more verbose, like print updated channel names
         -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, which has updated rules since the previous

       Update archives are verified using SHA1 hashes and GPG signatures, by

       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.

           sa-update can update multiple channels at the same time.  By
           default, it will only access "", but more
           channels can be specified via this option.  If there are multiple
           install it.  The exit code will be 0 or 1 as described below.

           Install updates "offline", from the named tar.gz file, instead of
           performing DNS lookups and HTTP invocations.

           Files named file.sha1 and file.asc will be used for the SHA-1 and
           GPG signature, respectively.  The filename provided must contain a
           version number of at least 3 digits, which will be used as the
           channel's update version number.

           Multiple --channel switches cannot be used with --install.  To
           install multiple channels from tarballs, run "sa-update" multiple
           times with different --channel and --install switches, e.g.:

                   sa-update --channel --install foo-34958.tgz
                   sa-update --channel --install bar-938455.tgz

           Allow downloaded updates to activate plugins.  The default is not
           to activate plugins; any "loadplugin" or "tryplugin" lines will be
           commented in the downloaded update rules files.

       --gpg, --nogpg
           sa-update by default will verify update archives by use of a SHA1
           checksum and GPG signature.  SHA1 hashes can verify whether or not
           the downloaded archive has been corrupted, but it does not offer
           any form of security regarding whether or not the downloaded
           archive is legitimate (aka: non-modifed by evildoers).  GPG
           verification of the archive is used to solve that problem.

           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.

           sa-update has the concept of "release trusted" GPG keys.  When an
           archive is downloaded and the signature verified, sa-update
           requires that the signature be from one of these "release trusted"
           keys or else verification fails.  This prevents third parties from
           manipulating the files on a mirror, for instance, and signing with
           their own key.

           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.:


           Use to import GPG 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.

           Force the list of sa-update mirrors for each channel, stored in the
           MIRRORED.BY file, to be updated.  By default, the MIRRORED.BY file
           will be cached for up to 7 days after each time it is downloaded.

           By default, "sa-update" will use the system-wide rules update


           If the updates should be stored in another location, specify it

           Note that use of this option is not recommended; if you're just
           using sa-update to download updated rulesets for a scanner, and sa-
           update is placing updates in the wrong directory, you probably need
           to rebuild SpamAssassin with different "Makefile.PL" arguments,
           instead of overriding sa-update's runtime behaviour.

       -D [area,...], --debug [area,...]
           Produce debugging output.  If no areas are listed, all debugging
           information is printed.  Diagnostic output can also be enabled for
           each area individually; area is the area of the code to instrument.
           For example, to produce diagnostic output on channel, gpg, and
           http, use:

                   sa-update -D channel,gpg,http

           For more information about which areas (also known as channels) are
           available, please see the documentation at

       -h, --help
           Print help message and exit.

       -V, --version
       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) <>


       See <>

       The Apache SpamAssassin(tm) Project <>

       SpamAssassin is distributed under the Apache License, Version 2.0, as
       described in the file "LICENSE" included with the distribution.

perl v5.14.2                      2015-01-28                     SA-UPDATE(1p)
Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2017 Hurricane Electric. All Rights Reserved.