Does anybody use sa-update to update Spamassassin rules on DirectAdmin?
I found upcoming howto. Is it safe to do this with DirectAdmin?
--------------------
SpamAssassin has a command line feature called sa-update. For it to function, you need several perl modules.
By default, the DirectAdmin install does not include LWP::UserAgent and Archive::Tar. These modules need to be installed before it will work.
Answer yes to all question asked. This will install the LWP::UserAgent module.
In some ocassions the installation fails on make test. To force the installation type the following command:
After it finishes, type the following command to install Archive::Tar
When the installation is complete, exit by typing exit at the cpan command line. Then, type the following command to update SpamAssassin's checks. Note that this does not update the SpamAssassin code itself.
If the command does not output any fatal errors and exits with code 0, the update has been completed. The feature would fit fine in a daily cronjob to update your SA checks.
There are three exit codes possible:
0 - updates were available and installed
1 - there were no fresh updates available
4 or higher - an error occured while downloading and extracting updates
Now restart SpamAssassin, this is only needed when the update exits with code 0.
I found upcoming howto. Is it safe to do this with DirectAdmin?
--------------------
SpamAssassin has a command line feature called sa-update. For it to function, you need several perl modules.
By default, the DirectAdmin install does not include LWP::UserAgent and Archive::Tar. These modules need to be installed before it will work.
Code:
# cpan
cpan> install LWP::UserAgent
In some ocassions the installation fails on make test. To force the installation type the following command:
Code:
cpan> force install LWP::UserAgent
Code:
cpan> install Archive::Tar
Code:
# sa-update -D
There are three exit codes possible:
0 - updates were available and installed
1 - there were no fresh updates available
4 or higher - an error occured while downloading and extracting updates
Now restart SpamAssassin, this is only needed when the update exits with code 0.
Code:
# killall spamd
# /usr/bin/spamd -d -c -m 5