LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-11-2009, 03:22 PM   #1
nycsurf
LQ Newbie
 
Registered: Feb 2009
Location: New York City
Distribution: RHEL6
Posts: 6

Rep: Reputation: 0
Spamassassin not working after upgrade


Hello,

I recently upgraded to spamassassin-3.2.5-1.el5 using up2date and spamassassin no longer seems to be filtering messages. Spamassassin correctly identifies the sample spam message when I do

spamassassin -D < /usr/share/doc/spamassassin-3.2.5/sample-spam.txt

from the command line, but it does not tag the GTUBE email when I send it to myself from an external email account. It doesn't look like sendmail/procmail is sending the mail through spamassassin, although it's not clear to me why not. I didn't change anything in my config files and the upgrade notes for spamassassin did not indicate that anything should be changed.

I've googled extensively to see if anyone else is having this problem and what possible solutions might be, but nothing that I've tried (changing config files, restarting spamd, etc.) has worked.

Has anyone else experienced this problem? Any suggestions for solutions would be greatly appreciated. I'm getting killed w/ spam!

Thanks,
Greg
 
Old 02-11-2009, 03:26 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
in procmail set verbose on and add a logfile.
Then look in the logfile for any pointers,
or look in
/var/log/mail.log
 
Old 02-12-2009, 11:49 AM   #3
nycsurf
LQ Newbie
 
Registered: Feb 2009
Location: New York City
Distribution: RHEL6
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the suggestion. I did this and here is the relevant part of the log file for a sample email:

procmail: Assigning "DROPPRIVS=yes"
procmail: Assuming identity of the recipient, VERBOSE=off
procmail: Assigning "PATH=/bin:/usr/bin:/usr/local/bin"
procmail: Assigning "SHELL=/bin/sh"
procmail: Executing "/usr/bin/spamassassin"
/bin/sh: /usr/bin/spamassassin: Permission denied
procmail: Program failure (126) of "/usr/bin/spamassassin"
procmail: Rescue of unfiltered data succeeded

I'm still stumped, however. The permissions for spamassassin seem to be correct:

-rwxr-xr-x 1 root root 27021 Sep 14 18:29 /usr/bin/spamassassin

I can run it from the command line, so I'm not sure why I'm still getting "permission denied." Do I need to change the ownership of spamassassin?

I could only find one relevant posting with a similar error (located here
http://use.perl.org/~samtregar/journal/29278), but that doesn't sound like my problem.
 
Old 02-12-2009, 12:00 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
here I use spamc
Here my procmailrc

Code:
SUBJ_=`formail -xSubject: \
       | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`

:0 fw
   | /usr/bin/spamc

:0
* ^X-Spam-Level: \*\*\*
* ^X-Spam-Status: Yes
{
        :0 fhw
        | formail -A "X-SPAM-INFO: BLOCKED BY SPAMASSASSIN"
        :0 fhw
        | formail -A "X-SPAM-INFO: Mail is sent to SPAMCOP http://www.spamcop.net"
        :0 fhw
        | formail -I"Subject: [SPAM] ${SUBJ_}"
        LOG="SPAMASSASSIN "
        :0 cw
        | /usr/local/bin/report.pl
        :0 cw
        | /usr/bin/spamassassin -r
        :0
        ${DEFAULT}
}

repo@cannabis:~$ spamassassin -V
SpamAssassin version 3.2.5
running on Perl version 5.10.0
 
Old 02-12-2009, 01:07 PM   #5
nycsurf
LQ Newbie
 
Registered: Feb 2009
Location: New York City
Distribution: RHEL6
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the suggestion. I edited my .procmailrc to use spamc, but I'm getting the same message--i.e., permission denied for running spamc.
 
  


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: test it's working hamish Linux - Networking 2 05-13-2005 06:14 AM
is spamassassin is working ryedunn Linux - Newbie 3 10-25-2004 09:37 AM
Spamassassin not working in Slack9 nssrikanth Linux - Software 0 09-21-2003 12:01 PM
Procmail not working with sendmail/spamassassin jamestastic3924 Linux - Networking 0 09-14-2003 01:01 PM
Spamassassin working too well! rovertus Linux - Software 2 07-18-2003 12:55 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:24 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