procmail
[Top] [All Lists]

Re: some spammers sneaking into my greenbox

2001-07-21 15:21:39
Thank you all for your suggestions. I figured out what the
problem was: I construct my greenlist by grepping my "sent"
mailboxes and address books for email addresses. It turns out
that I had put comments in my addressbook that contained strings
like these:

 @home
 @work

So then my greenlist contained these strings too and messages that
were From someone(_at_)home(_dot_)com were matching on "@home". I've now
cleaned up my "makegreenlist" script so it is much better about
only putting actual email addresses into my greenlist. FYI, here
is a fragment of my makegreenlist script:


cat $HOME/Msgs/Configs/abook* \
 |egrep 
"[A-Za-z0-9_(_dot_)+-][A-Za-z0-9_(_dot_)+-]*(_at_)[A-Za-z0-9_(_dot_)+-][A-Za-z0-9_(_dot_)+-]*"
 \
 |sed -e 
"s/^.*[^A-Za-z0-9_.+-]\([A-Za-z0-9_(_dot_)+-][A-Za-z0-9_(_dot_)+-]*(_at_)\)/\1/"
 \
      -e "s/\(@[A-Za-z0-9_.+-][A-Za-z0-9_.+-]*\)[^A-Za-z0-9_.+-].*$/\1/" \
 |sort -fu \
          >> $HOME/Procmail/greenlist.tmp


It's certainly not perfect but it's seems to be working OK for
now. I'm curious how other people construct greenlists and
extract email addresses from text files or c-client MBX-formatted
mailboxes.

I'm also still curious about the algorithm that `formail -r' uses
to construct the To header.

Thanks again,
Nancy

-- 
ii Procmail QStart: <http://www.ii.com/internet/robots/procmail/qs/>

Nancy McGough           <http://www.ii.com/>           Infinite Ink
= Sent via Pine 4.39.99: IMAP, NNTP & ESMTP for Unix/Win/Mac OS X =

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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