LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-05-2003, 01:59 PM   #1
LeechBot
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9
Posts: 25

Rep: Reputation: 15
SpamAssassin tags, but won't redirect


RH9 with kernel 2.4.20-19.9, spamassassin-2.44-11.8.x

Using Linux Bible and recipes I googled, I'm trying to set up SpamAssassin to tag and redirect spam into the user's ~/mail/SPAM file, which I created. I've tried the following, but spam is still getting passed through even though SpamAssassin correctly tags it. Because I'm not 100% certain what needs to be restarted whenever you alter /etc/procmailrc (can someone say?) I've been rebooting to test each change.

I need to make this work with emacs's RMAIL. I also tried redirecting incoming spam to /dev/null.

First, I put in /etc/procmailrc:

:0fw
| /usr/bin/spamc

And in the user's ~/.procmailrc, I tried:

:0:
* ^X-Spam-Flag: YES
$HOME/mail/SPAM

then I tried:
:0:
* ^X-Spam-Status: Yes
~/mail/SPAM

When those didn't work, I went back to /etc/procmailrc and tried:

:0fw
| /usr/bin/spamc

:0:
* ^X-Spam-Status: Yes
/dev/null

I also tried in /etc/procmailrc:
MAILDIR=$HOME/mail
:0fw
| /usr/bin/spamc

:0:
* ^X-Spam-Status: Yes
SPAM

I also tried these using

/usr/bin/spamassassin -a

instead of

/usr/bin/spamc

I get the same results every time: correctly tagged spam that doesn't get redirected.

Last edited by LeechBot; 09-06-2003 at 06:16 PM.
 
Old 09-06-2003, 11:07 AM   #2
LeechBot
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9
Posts: 25

Original Poster
Rep: Reputation: 15
geez, no spam assassins out there? isn't spamassassin's capacity to redirect sort of its basic idea?
 
Old 09-14-2003, 02:02 PM   #3
xichimos
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Every figure it out? I have the same problem
 
Old 09-14-2003, 02:23 PM   #4
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
There are several places to modify spamassassin's behavior. I ssume that you are doing it in your .spamassassin directory in your hore directory?

Add the following lines at the top of your .procmailrc script and check the log file produced. This will tell you exactly what procmail is doing with your mail.

SHELL = "/bin/bash"
LOGFILE = "/home/yourhome/pm.log"
VERBOSE = "on"

Cheers--
Charles
 
Old 09-14-2003, 03:12 PM   #5
LeechBot
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9
Posts: 25

Original Poster
Rep: Reputation: 15
I actually had a syntax error in my procmailrc due to the place I was cutting and pasting from. My posting here, which lists correct syntax, did not reflect the actual contents of my procmailrc file.

For more attention to spamassassin issues than you're likely to get here, I suggest you try the spamassassin mailing list (that's what I did). Read their instructions at spamassassin.org before posting to that list.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
After Editing Tags with JuK - XMMS do not display tags correctly Artik Linux - Software 0 07-23-2005 06:55 AM
based on tags? Samsara LQ Suggestions & Feedback 1 02-23-2005 09:54 PM
installation tags props666999 Slackware 2 11-14-2004 03:25 PM
spamassassin tags spam while procmail isn't running broxtor Linux - Software 1 10-13-2004 03:57 PM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 08:12 AM


All times are GMT -5. The time now is 09:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration