procmail
[Top] [All Lists]

Using /etc/mail/access for a blacklist filter

2004-10-15 07:31:12
Hello all:

I tried to establish a rule that would look at the From:
and compare it against the domains in /etc/mail/access
If it matches, store a copy into ..test_blacklist

Problem is, every message is matching.

(I based my filter off of Nancy M's whitelist recipe for Pine's .addressbook)



Filter
==================================================================================
VERBOSE=ON
:0 c:
* ? formail -xFrom: | cat /etc/mail/access | grep -vw OK | grep -v @ | grep 
\\\. | awk '{print $1}'
..test_blacklist
VERBOSE=OFF
==================================================================================



Headers of test email message I sent to myself
==================================================================================
Return-Path: <sbirl(_at_)temple(_dot_)edu>
Received: from concept.ocis.temple.edu (localhost [127.0.0.1])
    by concept.ocis.temple.edu (8.12.10+Sun/8.12.11) with ESMTP id 
i9FDjBgx002017
    for <sbirl(_at_)concept(_dot_)ocis(_dot_)temple(_dot_)edu>; Fri, 15 Oct 
2004 09:45:11 -0400 (EDT)
Received: from localhost (sbirl(_at_)localhost)
    by concept.ocis.temple.edu (8.12.10+Sun/8.12.10/Submit) with ESMTP id 
i9FDjB40002010
    for <sbirl(_at_)localhost>; Fri, 15 Oct 2004 09:45:11 -0400 (EDT)
X-Authentication-Warning: concept.ocis.temple.edu: sbirl owned process doing -bs
Date: Fri, 15 Oct 2004 09:45:11 -0400 (EDT)
From: "S.A. Birl" <sbirl(_at_)temple(_dot_)edu>
To: Birl <sbirl(_at_)concept(_dot_)ocis(_dot_)temple(_dot_)edu>
Subject: test blacklist
Message-ID: 
<Pine(_dot_)GSO(_dot_)4(_dot_)61(_dot_)0410150945020(_dot_)27893(_at_)pbaprcg>
Return-Receipt-To: sbirl+return-receipt(_at_)concept(_dot_)temple(_dot_)edu
X-Priority: 3 (Normal)
Importance: Normal
Sensitivity: Normal
X-MSMail-Priority: Normal
Organization: Temple University
X-CONCEPT-TEMPLE-EDU: sbirl at concept dot temple dot edu composed this message.
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
==================================================================================



Verbose log
==================================================================================
DATE        --->  Fri, 15 Oct 2004 09:45:11 -0400 (EDT)
RETURN-PATH --->  <sbirl(_at_)temple(_dot_)edu>
FROM        --->  "S.A. Birl" <sbirl(_at_)temple(_dot_)edu>
TO          --->  Birl <sbirl(_at_)concept(_dot_)ocis(_dot_)temple(_dot_)edu>
SUBJECT     --->  test blacklist
procmail: Executing " formail -xFrom: | cat /etc/mail/access | grep -vw OK | 
grep -v @ | grep \\\. | awk '{print $1}'"
procmail: Assigning "LASTFOLDER=..test_blacklist"
procmail: Opening "..test_blacklist"
procmail: Acquiring kernel-lock
procmail: Match on " formail -xFrom: | cat /etc/mail/access | grep -vw OK | 
grep -v @ | grep \\\. | awk '{print $1}'"
procmail: Locking "..test_blacklist.lock"
==================================================================================



Output of  cat /etc/mail/access | grep -vw OK | grep -v @ | grep \\\. | awk 
'{print $1}'
==================================================================================
126.com
163.com
163.net
21cn.com
24CaratDeals.com
263.com
a4m.org
adverpages.com
allegisgroup.com
asia.com
attbi.com
attglobal.net
autocontactor.com
awemail.com
bigfoot.com
bluewin.ch
caramail.com
chez.com
china.com
citibank.com
cleggo.net
clickfarm.net
co.za
comcastbusiness.net
computeradmin.org
consumer.com
consumer-based.com
cvs34.info
deliveredfreestuff.com
doramail.com
easilynews.com
ecplaza.net
fastmail.ca
firstpointsecure.com
firstsecurelink.com
fuckcasus.com
fucktown.net
goldmail.ru
goldtrainmedia.com
goodtimeoffers.com
greenapple.com
handbag.com
hanmail.net
hinet.net
hknet.com
hushmail.com
indiatimes.com
intermediahaiti.com
kittymail.com
latinmail.com
lc03.com
lc04.com
lc05.com
lycos.com
mail.com
mail.net
mixmail.com
mmail1.com
mymailgenie.com
myrealbox.com
ne.jp
nikai-jimusho.com
nimbus.temple.edu
nimbus.ocis.temple.edu
optonline.com
optonline.net
pc-mall.com
premarketpromotions.com
prodigy.com
promocapital.us
quintanaroo.com
rashpie.com
regards.net
rogers.com
rsub.com
sagittariusgirl.com
sarazone.com
savings.com
securegirl.com
sensationalinternet.com
seriousfaith.com
seznam.cz
sharingexperience.info
ShowMeDaMoney.com
sina.com
sinavip.com
sprintmail.com
stmrewards2.com
stmrewards3.com
stmrewards4.com
straitgateministry.org
tatanova.com
terra.com.pa
tfz.net
thunder.temple.edu
thunder.ocis.temple.edu
tidni.com
tiscali.fr
tiscali.it
tiscall.fr
tiscall.it
tom.com
ujsa.com
unrivaledstandard.com
valuepier.com
verizonmail.com
vip-booking.com
virgilio.it
vtr.net
walla.com
webtv.com
wellsfargo.com
wildmail.com
wooow.it
xinhuanet.com
xxxhelp.net
yeah.net
coupons.com
internet.com
offer.com
offers.com
purchase.com
rewards.com
techtarget.com
==================================================================================



 Thanks
 Birl



 Archives   http://www.xray.mpe.mpg.de/mailing-lists/procmail/

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Using /etc/mail/access for a blacklist filter, S.A. Birl <=