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. |
geez, no spam assassins out there? isn't spamassassin's capacity to redirect sort of its basic idea?
|
Every figure it out? I have the same problem
|
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 |
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. |
All times are GMT -5. The time now is 10:17 AM. |