Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th July 2007, 20:34
mindrail mindrail is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default sarge/etch sa-sync antidrug.cf problem

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
Reply With Quote
Sponsored Links
  #2  
Old 21st July 2007, 18:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
updatedb
locate antidrug.cf
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 23rd July 2007, 22:10
mindrail mindrail is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 24th July 2007, 14:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you delete both files? Does it work then?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 25th July 2007, 00:35
mindrail mindrail is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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

Thanks for your help.
Reply With Quote
  #6  
Old 25th July 2007, 00:38
mindrail mindrail is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #7  
Old 25th July 2007, 00:40
mindrail mindrail is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #8  
Old 25th July 2007, 09:03
thefox thefox is offline
Junior Member
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default custom rulesets

hi, mindrail,

you may have setup your debian according to http://www.howtoforge.com/virtual_po...ota_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.
Reply With Quote
The Following User Says Thank You to thefox For This Useful Post:
mindrail (7th August 2007)
  #9  
Old 7th August 2007, 22:41
mindrail mindrail is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Hi

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

nice one
m
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
postfix mysql on fedora core5 igongora Installation/Configuration 7 17th April 2007 04:40
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 16:06


All times are GMT +2. The time now is 21:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.