Re: [AMaViS-user] another sa-update question

2006-11-06 Thread MrC
Ignore error responses from automated routines is pointless. Why not just disable the mechanism? In that case, adding $status to your output of your script, will allow you to met your goal of not ignoring the reported error response: if [ $status -ne 1 ] then

Re: [AMaViS-user] another sa-update question

2006-11-06 Thread Jo Rhett
MrC wrote: Ignore error responses from automated routines is pointless. Why not just disable the mechanism? In that case, adding $status to your output of your script, will allow you to met your goal of not ignoring the reported error response: Eh? Status is a number, nothing more. We

Re: [AMaViS-user] another sa-update question

2006-11-06 Thread Jo Rhett
I said that any number besides 0 or 1 wasn't important, that the necessary information I needed would come from standard error. You can't say that is false. I'm done with this conversation. I'm not sure what you don't get and I don't much care. Your constant accusations (and misreading of

Re: [AMaViS-user] another sa-update question

2006-11-05 Thread Rainer Ophoven
Mark, maybe a stupid question (not to familar with Perl): but how does FuzzyOcr.cf fit into this picture? Also: using Your additional_perl_modules-variable I still find extra modules loaded: /etc/mail/spamassassin/FuzzyOcr.pm-entries in my amavisd.log every time a mail with pictures attached

Re: [AMaViS-user] another sa-update question

2006-11-02 Thread Gary V
Mark wrote: Running amavisd chrooted should not be a problem, SA loads its rules files at startup time before chroot takes place. It should not be necessary to provide a copy of rules files in chroot jail. This may not be a case with some additional custom SA plugins which come with their

Re: [AMaViS-user] another sa-update question

2006-11-02 Thread Mark Martinec
Gary, Thanks for the correction, and new feature reminder. As you can see, I will immediately put it to good use on my system: Oct 31 16:03:23 mail amavis[9634]: (09634-03) extra modules loaded: /etc/mail/spamassassin/WebRedirect.pm, /usr/share/perl5/Mail/SpamAssassin/Plugin/FuzzyOcr.pm,

Re: [AMaViS-user] another sa-update question

2006-11-02 Thread Jo Rhett
Gary V wrote: Myself, I would be more inclined modify amavisd and run this once a day: sa-update --nogpg --updatedir \ /var/amavisd/var/lib/spamassassin/3.001004 amavisd reload SA-Update returns with code 1 when there are no new rules. Do you want to restart amavisd when there are no new

Re: [AMaViS-user] another sa-update question

2006-11-02 Thread Jo Rhett
Peter Huetmannsberger wrote: 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,

Re: [AMaViS-user] another sa-update question

2006-11-02 Thread MrC
Gary V wrote: Myself, I would be more inclined modify amavisd and run this once a day: sa-update --nogpg --updatedir \ /var/amavisd/var/lib/spamassassin/3.001004 amavisd reload Jo Rhett wrote: SA-Update returns with code 1 when there are no new rules. Do you want to restart

Re: [AMaViS-user] another sa-update question

2006-11-02 Thread Jo Rhett
MrC wrote: The is a short-circuting AND; it will only perform the next command *iff* the previous command succeeds. Since 1 is a failure, the amavisd reload does not occur. yeah, but it doesn't do anything intelligent in the case that the update fails either, which is why you shouldn't do

Re: [AMaViS-user] another sa-update question

2006-11-02 Thread Henrik Krohns
On Thu, Nov 02, 2006 at 03:32:27PM -0800, Jo Rhett wrote: MrC wrote: The is a short-circuting AND; it will only perform the next command *iff* the previous command succeeds. Since 1 is a failure, the amavisd reload does not occur. yeah, but it doesn't do anything intelligent in the

Re: [AMaViS-user] another sa-update question

2006-10-29 Thread Peter Huetmannsberger
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-usersm=11546111299 Gary V thanks for

Re: [AMaViS-user] another sa-update question

2006-10-29 Thread Gary V
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-usersm=11546111299 Gary V

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread Jo Rhett
Peter wrote: I ran 'sa-update' as root and the directory /var/amavisd/var/spamassassin/3.001004/updates_spamassassin_org was created and populated with rules. Yet before that I had /var/amavisd/usr/local/share/spamassassin containing my rules. How do I get SA to look in the right place?

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread Jo Rhett
Gary V wrote: Peter wrote: I ran 'sa-update' as root and the directory /var/amavisd/var/spamassassin/3.001004/updates_spamassassin_org was created and populated with rules. Yet before that I had /var/amavisd/usr/local/share/spamassassin containing my rules. How do I get SA to look in the

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread techlist06
If running 2.4.2, and SA 3.1.4, add LOCAL_STATE_DIR = '/var/lib', here: # LOCAL_RULES_DIR = '/etc/mail/spamassassin', LOCAL_STATE_DIR = '/var/lib', #see man Mail::SpamAssassin for other options stop amavisd and run amavisd debug-sa, see if it now reads the rules from the new

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread Peter
--- Gary V [EMAIL PROTECTED] wrote: Peter wrote: I ran 'sa-update' as root and the directory /var/amavisd/var/spamassassin/3.001004/updates_spamassassin_org was created and populated with rules. Yet before that I had /var/amavisd/usr/local/share/spamassassin containing my rules. How

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread Gary V
techlist06 wrote: If running 2.4.2, and SA 3.1.4, add LOCAL_STATE_DIR = '/var/lib', here: # LOCAL_RULES_DIR = '/etc/mail/spamassassin', LOCAL_STATE_DIR = '/var/lib', #see man Mail::SpamAssassin for other options stop amavisd and run amavisd debug-sa, see if it now reads the rules

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread Gary V
Peter wrote: If running 2.4.2, and SA 3.1.4, add LOCAL_STATE_DIR = '/var/lib', here: # LOCAL_RULES_DIR = '/etc/mail/spamassassin', LOCAL_STATE_DIR = '/var/lib', #see man Mail::SpamAssassin for other options stop amavisd and run amavisd debug-sa, see if it now reads the rules

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread Gary V
Gary wrote: 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-usersm=11546111299 Myself, I would be more

Re: [AMaViS-user] another sa-update question

2006-10-28 Thread Peter
--- Gary V [EMAIL PROTECTED] wrote: Peter wrote: If running 2.4.2, and SA 3.1.4, add LOCAL_STATE_DIR = '/var/lib', here: # LOCAL_RULES_DIR = '/etc/mail/spamassassin', LOCAL_STATE_DIR = '/var/lib', #see man Mail::SpamAssassin for other options stop amavisd and run

Re: [AMaViS-user] another sa-update question

2006-10-27 Thread Gary V
Peter wrote: I ran 'sa-update' as root and the directory /var/amavisd/var/spamassassin/3.001004/updates_spamassassin_org was created and populated with rules. Yet before that I had /var/amavisd/usr/local/share/spamassassin containing my rules. How do I get SA to look in the right place?

[AMaViS-user] another sa-update question

2006-10-26 Thread Peter
I am running amavisd-new 2.4.2 and spamassassin 3.1.4 on OpenBSD 3.9. I have only now discovered sa-update and would like to get it running. I have read some posts on this list regarding how to do this but they refer to directory /var/lib which does not exist on my system. I am also running all

Re: [AMaViS-user] another sa-update question

2006-10-26 Thread Jo Rhett
Peter wrote: I am running amavisd-new 2.4.2 and spamassassin 3.1.4 on OpenBSD 3.9. I have only now discovered sa-update and would like to get it running. I have read some posts on this list regarding how to do this but they refer to directory /var/lib which does not exist on my system. I