On Thu, Aug 07, 2003 at 08:48:12PM +0100, Angel Gabriel wrote:

> I have just installed SA on my laptop, and i want to get it working,
> before i install it on my netork systems. The trouble is, all spam seems
> to STILL be getting through, without being marked.

All that SA does is add headers to the email stating whether it is spam or 
not.  You still need to get procmail to do something with that 
information.

> I have this is my ~/.procmailrc
> 
> 
> :0fw
> | /usr/bin/spamassassin
> 
> I thought that this would take all mail delivered to me, and run it by
> SA, with SA marking the messages it thinks are spam, with a big
> ***SPAM*** in the subject line. But this is not happening.

All email delivered to you IS being run by SA and SA IS marking it as 
spam.  It is marked as spam by adding something like this to the header:

X-Spam-Flag: YES
X-Spam-Status: Yes, hits=5.4 required=5.0
        tests=ALL_CONSONANTS,FROM_ENDS_IN_NUMS,HTTP_USERNAME_USED,

The flag is in the headers, not in the subject line.

What you probably want to do is get procmail to divert all emails with 
this flag to a sepparate folder.  Your ~/.procmailrc could look something 
like this:


# First pass the email through SA:
:0fw
| /usr/bin/spamassassin

# If it's spam, send it to the spam folder.
:0:
* ^X-Spam-Status: Yes
spam


Hope that helps.
-- 
Daniel Carrera | PGP: 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88
Math PhD. UMD  | http://www.math.umd.edu/~dcarrera/pgp.html

Weekly Smile:
        There are 10 types of people in the world...
        Those who understand binary -  and those who don't.


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to