To automatically update SpamAssassin, I'm testing the following concept: The latest version of SA can also be found on CPAN, so I run a weekly cronjob to check if there is a newer version. If so, it is automatically downloaded and installed. So far it seems to work, but the jury is still out.
The drawback is that it requires the development tools and CPAN to be configured on your system.
So this is what I did:
1/ Downloaded and installed the development tools from
http://lordsfam.net/downloads/production/dev-tools/2/ Installed ncftp from
ftp://ftp.redhat.com/pub/redhat/linux/8.0/en/os/i386/RedHat/RPMS/ncftp-3.1.3-6.i386.rpm3/ Configured CPAN (from the command line: perl -MCPAN -e shell and accepted all defaults).
4/ Put the following script in /etc/cron.weekly:
#!/bin/bash
sa-update() {
echo o conf prerequisites_policy follow
echo install Mail::SpamAssassin
echo exit
}
sa-update | perl -MCPAN -e shell 2> /dev/null
That's all. Anyone care to comment?
Michiel