DAve wrote:
There is nothing special required for FreeBSD, the etc dir for user
installed software is /usr/local/etc, so the local.cf is in
/usr/local/etc/mail/spamassassin and that is the directory you should
point RDJ to.
Oh, and in case you are thinking about it, don't use the --update-dir
switch on sa-update and try to be smarter than the SA developers. I did,
and it will cause much grief. Just accept that sa-update and RDJ update
two different directories and move along. You life will be easier. If
you really want SARE rules updated the same as SA rules, then subscribe
to a SARE channel.
I dunno about you, but I kindof prefer that sa-update has its own
directory (/var/lib/spamassassin) to play in. I run my servers with
/usr mounted read only :-)
Dave -- if you are a new site and you're not running RDJ today, might I
suggest that you simply use sa-update to get both sets of updates?
Here's a script you can run out of cron. Remove the backslash
continuers from the invocation line, and you probably want to eventually
replace "LOADED..." with a command line to restart your daemon (if
applicable)
#!/bin/sh
/usr/local/bin/sa-update \
--channelfile /var/lib/spamassassin/update-channels.txt \
--gpgkey 856AA88A
status=$?
if [ $status -eq 0 ]
then
echo "LOADED NEW FILES -- need to restart amavisd."
else
# Return code 1 means "no new updates", anything else is bad
if [ $status -ne 1 ]
then
echo "ERROR: SA-update appears to have failed."
fi
fi
--
Jo Rhett
Network/Software Engineer
Net Consonance