LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2008, 12:14 PM   #1
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
spamassassin trouble


I have this server which supposedly has SpamAssassin installed. I did:

ps -aux | grep spamd

...and that is indeed running.

**EDIT** This is a mistake. There is no spamd running... (and I'm not sure there is ever supposed to be)

However, I'm not sure if any spam filtering is happening. I went to my yahoo mail account and sent the following message to the server:

subject: spm test

body: blah blah blah Penis Enlargement blah blah blah

Now there is a rule in my /etc/mail/spamassassin/ local.cf file that looks like this:

body LOCAL_PENIS_RULE =~ /Penis Enlargement/i
score LOCAL_PENIS_RULE 10

I don't think that email should have gone through. What else can I check to make sure this thing is actually working correctly?

I believe amavisd should be filtering the mail once spamassassin has tagged it

Last edited by davidstvz; 09-25-2008 at 12:20 PM.
 
Old 09-25-2008, 12:37 PM   #2
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
OK, let's start over.

I'm running Free BSD 5.2.1 with sendmail. Before vanishing into the night (i.e. resigning) the previous admin wrote the following flow chart:

Code:
sendmail-rx --> amavisd --> sendmail-tx
                   |
                   |
                clamav
                spamassassin
That's how he wrote it. He explained that the sendmail-rx receives mail from outside and also outgoing user email, passes it through the spam and virus filter and then the sendmail-tx either sends the mail out to the world or dumps it in the users inbox depending on where it was originally headed.

All I really want to do at the moment is tweak the spamassassin configuration as one very important user is complaining about getting massive spam.

I suspect the spam filter isn't even on at the moment. Any help troubleshooting this would be appreciated.
 
Old 09-25-2008, 01:46 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
body LOCAL_PENIS_RULE =~ /Penis Enlargement/i
score LOCAL_PENIS_RULE 10
You don't need the =~ before the string you're trying to catch. For more detail take a look here.
Don't forget to run
Code:
spamassassin --lint
to test your configuration.
 
Old 09-25-2008, 02:30 PM   #4
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
I did spamassassin --lint and got:

Code:
Can't load '/usr/local/lib/perl5/site_perl/5.10.0/i386-freebsd/auto/HTML/Parser/Parser.so' for module HTML::Parser: /usr/local/lib/perl5/site_perl/5.10.0/i386-freebsd/auto/HTML/Parser/Parser.so: Undefined symbol "PL_unitcheckav" at /usr/local/lib/perl5/5.8.8/i386-freebsd/XSLoader.pm line 70.
 at /usr/local/lib/perl5/site_perl/5.10.0/i386-freebsd/HTML/Parser.pm line 17
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/HTML.pm line 26.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/HTML.pm line 26.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/Message/Node.pm line 42.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/Message/Node.pm line 42.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/Message.pm line 49.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin/Message.pm line 49.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin.pm line 73.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.0/Mail/SpamAssassin.pm line 73.
Compilation failed in require at /usr/local/bin/spamassassin line 79.
BEGIN failed--compilation aborted at /usr/local/bin/spamassassin line 79.
No wonder it's not running. Any idea what all that means?
 
Old 09-25-2008, 04:58 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
From the 1st line of the error you get it seems that you've upgraded perl from 5.8.8 to the latest 5.10.0 and that the HTML::Parser module was installed using 5.8.8.
I think that you should reinstall spamassassin (dependencies, like HTML::Parser etc must be reinstalled first) to use the newer perl.
 
Old 09-25-2008, 06:06 PM   #6
davidstvz
Member
 
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
oh wonderful...

that's exactly the kind of thing I was trying to avoid

me and freebsd aren't very friendly, I was going to migrate this machine to open suse 10 at the end of the year.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamassassin trouble mikelis Linux - Server 1 11-22-2006 04:14 PM
Spamassassin IP trouble shaggystyle Linux - Software 1 08-18-2005 12:57 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
Spamassassin help! byteZero Linux - Software 3 03-11-2004 02:24 AM
trouble ahead, trouble behind....trouble with mplayer Goonie Linux - Software 3 07-02-2003 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration