You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by je...@cct.lsu.edu on 2006/03/06 19:54:54 UTC

ham writes to file, spam disappears

I am running SA3.0.4  FC3

currently all ham is written correctly to the mbox i have set up.  spam, which i
am sure we are receiving, is disappearing.  while this is fairly desirable, I
would like it for sa-learn purposes.  This is my current procmailrc file.  Any
assistance would be appreciated.

Thank you,
Jeff D

#Spamassassin start
:0fw
* < 256000
| /usr/bin/spamc -f

PMDIR=/home/jeffd/.procmail
LOGABSTRACT=all
MAILDIR=/home/jeffd/mail
LOGFILE=$PMDIR/proclog
VERBOSE=off
DEFAULT=$MAILDIR/mbox

:0: Hw
* ^X-Spam-Status: Yes
spam


:0: Hw
* ^X-Spam-Status: No
mbox

#Spamassassin end




Re: ham writes to file, spam disappears

Posted by jdow <jd...@earthlink.net>.
From: <je...@cct.lsu.edu>
To: <us...@spamassassin.apache.org>
Sent: Monday, March 06, 2006 10:54
Subject: ham writes to file, spam disappears


>I am running SA3.0.4  FC3
> 
> currently all ham is written correctly to the mbox i have set up.  spam, which i
> am sure we are receiving, is disappearing.  while this is fairly desirable, I
> would like it for sa-learn purposes.  This is my current procmailrc file.  Any
> assistance would be appreciated.
> 
> Thank you,
> Jeff D
> 
> #Spamassassin start
> :0fw
> * < 256000
> | /usr/bin/spamc -f
> 
> PMDIR=/home/jeffd/.procmail
> LOGABSTRACT=all
> MAILDIR=/home/jeffd/mail
> LOGFILE=$PMDIR/proclog
> VERBOSE=off
> DEFAULT=$MAILDIR/mbox
> 
> :0: Hw
> * ^X-Spam-Status: Yes
> spam
> 
> 
> :0: Hw
> * ^X-Spam-Status: No
> mbox
> 
> #Spamassassin end


I take your lament to indicate that "/home/jeffd/mail/spam" is and remains
empty? The spam will not go into "mbox" so would be unreadable if you do
not try to read from "spam" as well.

{o.o}

Re: ham writes to file, spam disappears

Posted by jdow <jd...@earthlink.net>.
From: <je...@cct.lsu.edu>

> However,a different post was sent, accepted, posted to the list, was writtent to
> the mbox.  this was logged

Fine, that proves spam got through. Look for one that matches on
the "^X-Spam-Status: Yes" test. If no mails matched then the spam
is being filtered out before procmail gets to it.

{^_^}


Re: ham writes to file, spam disappears

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Mar 06, 2006 at 03:39:06PM -0600, jeffd@cct.lsu.edu wrote:
> However,a different post was sent, accepted, posted to the list, was writtent to
> the mbox.  this was logged

I'm afraid I'm not following the issue.  Looking at your log, two mails come
in which seem to be ham, and they're delivered to the inbox, which is what
you'd want.  If you sent yourself a mail with the GTUBE string (see
sample-spam.txt), see what the log says.

> procmail: [4093] Mon Mar  6 15:28:29 2006
> procmail: Assigning "DEFAULT=/home/jeffd/mail/mbox"
> procmail: No match on "^X-Spam-Status: Yes"

Ok, not spam.

> procmail: Match on "^X-Spam-Status: No"
> procmail: Locking "H"

This is caused by the ":0: Hw" bit.  You can drop the Hw completely since
there's no point.

> procmail: Notified comsat: "hisstuff@10254:/home/jeffd/mail/mbox"

You can also drop the rule for "X-Spam-Status: No".  If it's Yes, the previous
rule will catch it.  If it's No, just let it fall through and get delivered to
DEFAULT (shown above to be "mbox").

> >From mylist-bounces@mysite.org  Mon Mar  6 15:28:28 2006
>  Subject: [CactusMaint] [Fwd: [Patches] DefaultTimers.c: reduce compiler
>   Folder: mbox                                                             8865

Looks like ham.

> procmail: [4131] Mon Mar  6 15:28:31 2006
> procmail: Assigning "DEFAULT=/home/jeffd/mail/mbox"
> procmail: No match on "^X-Spam-Status: Yes"

Also not marked as spam.

> procmail: Match on "^X-Spam-Status: No"
> procmail: Locking "H"
> procmail: Assigning "LASTFOLDER=mbox"
> procmail: Opening "mbox"
> procmail: Acquiring kernel-lock
> procmail: [4131] Mon Mar  6 15:28:32 2006
> procmail: Unlocking "H"
> procmail: Notified comsat: "mystuff@19119:/home/jeffd/mail/mbox"
> >From cactusmaint-bounces@cactuscode.org  Mon Mar  6 15:28:30 2006
>  Subject: [CactusMaint] [Fwd: [Patches] DefaultTimers.c: reduce compiler
>   Folder: mbox

Same as last time.

> Hope this gives some assistance to you.

Since your problem is with procmail and not SpamAssassin, btw, you may want to
prod those folks.  http://www.procmail.org/

-- 
Randomly Generated Tagline:
I began making watches; Everyone said it was about time...

Re: ham writes to file, spam disappears

Posted by je...@cct.lsu.edu.
Quoting Theo Van Dinter <fe...@apache.org>:

> On Mon, Mar 06, 2006 at 01:14:21PM -0600, jeffd@cct.lsu.edu wrote:
> > > what does your log say?
> > the only items in my log is the messages about the ham that is being
> written to
> > the proper file.
> >
> > Sample:
> >
> > >From mymailsite-bounces@blah.org  Mon Mar  6 11:03:27 2006
> >  Subject: [CactusMaint] here we go again
> >   Folder: mbox
>
> Hrm.  I'd try turning on verbose logging ("VERBOSE=yes") and see what's going
> on with the spam.  I didn't see anything obvious in your procmailrc that
> would
> cause a problem, and procmail should definitely be logging any mails that
> it's
> handling.

I sent a message from a different email client with no subject and this line as
the body

ok, your site would not allow it to go through.  lets just say it is one of the
provided test messages that is supposed to flag the spam for test purposes. 
guess it works for some people.  :)

The great abyss swallowed it.  No log showed in the proclog.

However,a different post was sent, accepted, posted to the list, was writtent to
the mbox.  this was logged

procmail: [4093] Mon Mar  6 15:28:29 2006
procmail: Assigning "DEFAULT=/home/jeffd/mail/mbox"
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on "^X-Spam-Status: No"
procmail: Locking "H"
procmail: Assigning "LASTFOLDER=mbox"
procmail: Opening "mbox"
procmail: Acquiring kernel-lock
procmail: Unlocking "H"
procmail: Notified comsat: "hisstuff@10254:/home/jeffd/mail/mbox"
>From mylist-bounces@mysite.org  Mon Mar  6 15:28:28 2006
 Subject: [CactusMaint] [Fwd: [Patches] DefaultTimers.c: reduce compiler
  Folder: mbox                                                             8865
procmail: [4131] Mon Mar  6 15:28:31 2006
procmail: Assigning "DEFAULT=/home/jeffd/mail/mbox"
procmail: No match on "^X-Spam-Status: Yes"
procmail: Match on "^X-Spam-Status: No"
procmail: Locking "H"
procmail: Assigning "LASTFOLDER=mbox"
procmail: Opening "mbox"
procmail: Acquiring kernel-lock
procmail: [4131] Mon Mar  6 15:28:32 2006
procmail: Unlocking "H"
procmail: Notified comsat: "mystuff@19119:/home/jeffd/mail/mbox"
>From cactusmaint-bounces@cactuscode.org  Mon Mar  6 15:28:30 2006
 Subject: [CactusMaint] [Fwd: [Patches] DefaultTimers.c: reduce compiler
  Folder: mbox


Hope this gives some assistance to you.

Thank you,
Jeff D
>
> --
> Randomly Generated Tagline:
> Unlike most of you, I am not a nut.
>
>  		-- Homer Simpson
>  		   Homer's Odyssey
>





Re: ham writes to file, spam disappears

Posted by je...@cct.lsu.edu.
Quoting Theo Van Dinter <fe...@apache.org>:

> On Mon, Mar 06, 2006 at 12:54:54PM -0600, jeffd@cct.lsu.edu wrote:
> > currently all ham is written correctly to the mbox i have set up.  spam,
> which i
> > am sure we are receiving, is disappearing.  while this is fairly desirable,
> I
> > would like it for sa-learn purposes.  This is my current procmailrc file.
> Any
> > assistance would be appreciated.
> >
> > LOGFILE=$PMDIR/proclog
>
> what does your log say?
the only items in my log is the messages about the ham that is being written to
the proper file.

Sample:

>From mymailsite-bounces@blah.org  Mon Mar  6 11:03:27 2006
 Subject: [CactusMaint] here we go again
  Folder: mbox
>
> > :0: Hw
> > * ^X-Spam-Status: Yes
> > spam
>
> 'w' is meaningless here.
>
> > :0: Hw
> > * ^X-Spam-Status: No
> > mbox
>
> ditto about 'w'.
>
> --
> Randomly Generated Tagline:
> "Linux isn't an optimal OS. There are places that it is the best
>  one out there, and other places where it does poorly. Like every OS,
>  however, it evolves. Its openness simply lets it evolve faster than the
>  competition. Per Darwin, evolve or die." - Remande on /.
>





Re: ham writes to file, spam disappears

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, Mar 06, 2006 at 12:54:54PM -0600, jeffd@cct.lsu.edu wrote:
> currently all ham is written correctly to the mbox i have set up.  spam, which i
> am sure we are receiving, is disappearing.  while this is fairly desirable, I
> would like it for sa-learn purposes.  This is my current procmailrc file.  Any
> assistance would be appreciated.
>
> LOGFILE=$PMDIR/proclog

what does your log say?

> :0: Hw
> * ^X-Spam-Status: Yes
> spam

'w' is meaningless here.

> :0: Hw
> * ^X-Spam-Status: No
> mbox

ditto about 'w'.

-- 
Randomly Generated Tagline:
"Linux isn't an optimal OS. There are places that it is the best
 one out there, and other places where it does poorly. Like every OS,
 however, it evolves. Its openness simply lets it evolve faster than the
 competition. Per Darwin, evolve or die." - Remande on /.