sarge/etch sa-sync antidrug.cf problem

Discussion in 'Installation/Configuration' started by mindrail, Jul 20, 2007.

  1. mindrail

    mindrail New Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    updatedb
    locate antidrug.cf
    ?
     
  3. mindrail

    mindrail New Member

    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
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Can you delete both files? Does it work then?
     
  5. mindrail

    mindrail New Member

    Have done.
    I'll get back to you when I've left it to mix for a while.

    Thanks for your help.
     
  6. mindrail

    mindrail New Member

    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
     
  7. mindrail

    mindrail New Member

    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
     
  8. thefox

    thefox New Member

    custom rulesets

    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.
     
  9. mindrail

    mindrail New Member

    Hi

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

    nice one
    m
     

Share This Page