Peter wrote:

> Hi,
>> > sa-update --nogpg --updatedir /var/amavisd/usr/local/share/spamassassin
>> 
>> > 'amavisd debug-sa' picks up the rules.  I set the above command to run
>> > as cronjob once a week.
>> 
>> Read the warning:
>> http://marc.theaimsgroup.com/?l=spamassassin-users&m=115461333311299
>> 
>> Gary V

> But it doesn't clobber anything from what I can see.

You're right, at his point in time it doesn't.

> thanks for pointing out the warning. I am just wondering if this is still 
> the case though. My setup is excactly like the one, which the warning 
> warns about, however the sa-update creates its own directory 
> "updates_spamassassin_org" with /usr/share/spamassassin, and seemingly 
> leaves the old ones alone.

Yes, it does at this time.

> Has anyone got a reasonable solution to this problem. 

> I am also using RulesDuJour, and I do not want to clutter up 
> /etc/mail/spamassassin with more rules than necessary. It's bad enough 
> with a new *.pre file for every version of SA.

I don't use RulesDuJour, but I thought you could place SARE rules in a
subdirectory.

> If I use the /var/lib/spamassassin setup, sa-update creates a directory 
> for each version of SA and I would have to move the RulesDuJour rules into 
> those everytime I update SA. 

> Thanks for any help,
> .peter

If using sa-update to download SARE rules, it follows along to the
newest directory, but it is a problem when running chrooted as I
would image you would have to script something like this:

#!/bin/bash
sa-update
code1=$?
sa-update --channelfile /root/sare-sa-update-channels.tx --gpgkey 856AA88A
code2=$?
if [[ `expr $code1 + $code2` < 2 ]]; then
  spamassassin --lint
  code3=$?
  if [ $code3 = 0 ]; then
    rm -rf /var/amavisd/var/lib/spamassassin
    cp -rp /var/lib/spamassassin /var/amavisd/var/lib/spamassassin
    /etc/init.d/amavis restart
  else
    echo "spamassassin failed to lint"
  fi
fi

Gary V


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to