procmail
[Top] [All Lists]

Re: Bouncing/refusing mail with EXITCODE

1997-04-14 14:36:00
At 06:17 AM 4/14/97 -0700, James Vahn wrote:
On Mon, 14 Apr 1997, era eriksson wrote:

On Sun, 13 Apr 1997 19:15:13 -0700 (PDT),
James Vahn <jvahn(_at_)short(_dot_)circuit(_dot_)com> wrote:

    :0:.this.looks.like.a.good.place.to.lock
 > * ^(From|Message-id|Received):(.*andernet.org|.*earthlink\
 > |.*dm1.com|.*quant|.*telysis|.*sprynet|.*bellsouth|.*rosey\
 > |.*worldnet|.*bell|.*getnet|.*grafix|.*voyager|.*aol.com\
 > |.*origin suppressed|.*kiminc|.*cyber|.*america|.*redrove\
 > |.*concentric|.*cris.com|.*indiana)
 > {
 >         EXITCODE=67
 >         :0
 >         TRASHCAN
 > }
TRASHCAN looks like it's a synonym of /dev/null (since you're not
locking it); merely setting EXITCODE and unsetting HOST will lose the
message for you automatically; you don't have to save it anywhere
then. 

No, it should be locked. My fumble fingers seems to have omitted that for
some reason. It also looks like I forgot to escape andernet.com and a few
others. Thanks, I missed that entirely.

TRASHCAN is a folder that I snoop into once in a while. Like any garbage
can, you can expect it to be full of trash so there aren't many suprises.

(# match end of word or end of line: |\>|$))\

I didn't intend to match the end of anything with these, purposely
kept the names short to catch sub-domains. They are not going into
/dev/null and are not all spam sites, but sometimes paths that the 
spammers use.

Friendly mail ending up in TRASHCAN would force me to include a block
of "* ! ^From:.*(friendly(_dot_)face(_at_)someplace)" or something, but I 
haven't 
had to go through the trouble.. umm.. yet.

I guess you don't want email from me, huh?  You may get this, since
I think the procmail list discards the originating headers (which I
don't think is a good idea, but probably off-topic here).  Just for
fun, you're the "To:" on this, with the list Cc'd, which means you
should find one copy in TRASHCAN and one copy wherever your procmail
mailing list mail goes (unless you've done some other preprocessing).

My Windoze NT machine is named "voyager" which means outgoing
mail contains headers such as:
Received: from voyager (d12.dial-5.wal.ma.ultra.net [146.115.77.140]) by 
cinna.ultra.net (8.8.5/ult1.04) with SMTP id XAA17115; Sun, 13 Apr 1997 
23:22:12 -0400 (EDT)

and your filter will reject them (or, more precisely, TRASHCAN them).

Is there a "voyager.com" and/or "voyager.net" you're trying to snag?
Then please use "voyager\." at least; or maybe "voyager\.(net|com)".
Adding a dot to a lot of your names would probably be a good idea,
actually, since the individual sender's machine could well be named
pretty much anything.  You should filter as conservatively as you can,
and only tighten up your filters as the need arises.

Also, your list looks funny to me.  Are you going to tell me you
never get anything legitimate from anyone at aol.com?

Well, your email is your email... do what you want with it.  Since
you at least seem to peruse TRASHCAN rather than deleting willy-nilly,
you probably won't miss something really important.

Cheers,
Stan

<Prev in Thread] Current Thread [Next in Thread>