dougp23 wrote:

I am searching the forums, but some of this is just beyond me!

Just setup a new email server, with sendmail and spamassassin and
spamass-milter, etc.
Because the system is new, and the bayes hasn't gotten a lot of practice yet
(but it will!!)  we are getting lots of spam.

So my questions:
How do I identify spam with something from the body of the message?  (i.e.
Viagra in the message,  or Nigeria from that very kind man who has all that
money and just needs a little cash to get started).
And then how do I route those messages off to a junk folder??
I have seen all sorts of scripts, but really, the only one I know is
local.cf.  So if you can explain what to do in real basic terms, I would be
very gracious.  (sort of: add this line to this file, point to this script.
in this script have this text, etc etc.)

Much thanks!  Excellent site!  I am already seeing SA marking messages as
SPAM, but I want them to just get dumped!
Can sendmail work with maildir folders now? When I started on my quest for e-mail nirvana (a number of years ago) I found that sendmail wouldn't support folders (maildir) so I quickly stared using qmail. My system looks like this:

fetchmail-->qmail(rocks)-->procmail

where qmail(rocks) is:
qmail+qmail-scanner+spamassassin+clamav+courier and a few other nifty little things.

I don't really run a domain; I just use this to consolidate, scrub, sort and re-serv (IMAP) e-mail from various accounts.

It's the job of spamassassin to analyze the message (header and body) for tell-tail signs of being spam When it finds someting, it adds a crap load of new fields to message header that other programs can then look at. As far as getting junk to automagically go to a junk folder, use an MDA that support folders like procmail or maildrop. Basically you make a rule that looks at the *X-SPAM-STATUS* header field; if it = yes, then move it to the junk folder.

For Procmail, it looks like this:
:0
* $(^From|^Subject):.*${MAGAZINE}
{
 :0
 * ^X-Spam-Status: Yes
 {
   :0
   *X-Spam-Status:.*autolearn=no
   .Junk/

   :0
   .Trash/
 }

 :0
 .e-magazine/
}

Take a look at qmailrocks.org for a step-by-step installation guide on getting it setup.

Cheers

Reply via email to