PDA

View Full Version : sarge/etch sa-sync antidrug.cf problem


mindrail
20th July 2007, 21:34
Hello

Since sarge I've had this problem with sa-sync. The error mailed to me from cron is below.

Basically a missing comment in the antidrug.cf file in spamassassin throws the error, but in line with the version i have, i don't need the file and yet when I remove it, something recreates it and causes the error again.

Now I'm on etch, amavisd-new-cronjob is triggering cron and here it is. Anyone know how I can keep this deleted?

spamassassin v3.1.7-2 so well don't need antidrug.cf.

Any help many thanks
mark

String found where operator expected at (eval 908) line 1, near ""you" "are""
(Missing operator before "are"?)
String found where operator expected at (eval 908) line 1, near ""are" "running""
(Missing operator before "running"?)
String found where operator expected at (eval 908) line 1, near ""running" "SA""
(Missing operator before "SA"?)
Number found where operator expected at (eval 908) line 1, near ""SA" 3.0.0"
(Missing operator before 3.0.0?)
String found where operator expected at (eval 908) line 1, near "3.0.0 "or""
(Missing operator before "or"?)
String found where operator expected at (eval 908) line 1, near ""or" "higher""
(Missing operator before "higher"?)
String found where operator expected at (eval 908) line 1, near ""higher" "you""
(Missing operator before "you"?)
String found where operator expected at (eval 908) line 1, near ""you" "already""
(Missing operator before "already"?)
String found where operator expected at (eval 908) line 1, near ""already" "have""
(Missing operator before "have"?)
String found where operator expected at (eval 908) line 1, near ""have" "antidrug""
(Missing operator before "antidrug"?)
String found where operator expected at (eval 908) line 1, near ""antidrug" "and""
(Missing operator before "and"?)
String found where operator expected at (eval 908) line 1, near ""and" "this""
(Missing operator before "this"?)
String found where operator expected at (eval 908) line 1, near ""this" "file""
(Missing operator before "file"?)
config: unclosed 'if' in /etc/spamassassin/antidrug.cf: if you are running SA 3.0.0 or higher, you already have antidrug and this file

falko
21st July 2007, 19:50
What's the output of updatedb
locate antidrug.cf?

mindrail
23rd July 2007, 23:10
i get nothing from updatedb, just my prompt.

# locate antidrug.cf
/etc/spamassassin/.old-antidrug.cf-file
/etc/spamassassin/antidrug.cf

/etc/spamassassin/.old-antidrug.cf-file is when I tried to move the antidrug.cf out of the way.

i 'm stumped.

thanks for your help man.
m

falko
24th July 2007, 15:30
Can you delete both files? Does it work then?

mindrail
25th July 2007, 01:35
Have done.
I'll get back to you when I've left it to mix for a while.

Thanks for your help.

mindrail
25th July 2007, 01:38
Ah, I've just also noticed I;m getting mails from the crond:

/bin/sh: line 1: 11381 Segmentation fault /usr/sbin/amavisd-new-cronjob sa-sync

every 3 hours at ~18/19 minutes past.

Hope this helps - the file is std dist copy unchanged.

Thanks

mindrail
25th July 2007, 01:40
Blimey, I'm also getting emails - 1 of the every-3-hourly:

Subject: Cron <amavis@polonium> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync

Missing right curly or square bracket at /usr/share/perl5/Mail/SpamAssassin/Util/Progress.pm line 284, at end of line
syntax error at /usr/share/perl5/Mail/SpamAssassin/Util/Progress.pm line 284, at EOF
Compilation failed in require at /usr/bin/sa-learn line 82.
BEGIN failed--compilation aborted at /usr/bin/sa-learn line 82.
Missing right curly or square bracket at /usr/share/perl5/Mail/SpamAssassin/Util/Progress.pm line 284, at end of line
syntax error at /usr/share/perl5/Mail/SpamAssassin/Util/Progress.pm line 284, at EOF
Compilation failed in require at /usr/bin/sa-learn line 82.
BEGIN failed--compilation aborted at /usr/bin/sa-learn line 82.

I'll keep an eye on trends and report back.
Thanks

thefox
25th July 2007, 10:03
hi, mindrail,

you may have setup your debian according to http://www.howtoforge.com/virtual_postfix_mysql_quota_courier_p4 (I did).

You were advised to add some cusom rulesets to /usr/local/sbin/sa_rules_update.sh which is periodically called from cron. The antidrug.cf ruleset is one of them and you probably want to get rid of it.

mindrail
7th August 2007, 23:41
Hi

That's sorted all of the problems - gold star!

nice one
m