Hi,
I'm looking to implement a spam elimination system using procmail and was
wondering if anyone could help me with what I'm trying to do. I'm thinking
that I would have procmail establish which messages to accept using 2 greps.
The first grep will need to match domain names. The basic idea is that it
will be a list of domain names to accept mail from so it would have
freewaychase.com, webstylists.com, wsclient.com, and other clients of mine
where I want to automatically receive e-mail from them. An e-mail from
wife(_at_)webstylists(_dot_)com would match here as well as mail from
postmaster(_at_)mail(_dot_)webstylists(_dot_)com but test(_at_)notwebstylists(_dot_)com wouldn't match
it.
My thinking is that this file will be called "domains" and the basic
matching on it would end up being whether everything from either the @
character or the 2nd to last period matches what is in the file exactly.
The second file would be for exact e-mail matches. An listing from
test(_at_)hotmail(_dot_)com would match test(_at_)hotmail(_dot_)com or test(_at_)mail(_dot_)hotmail(_dot_)com but
it wouldn't match test3(_at_)hotmail(_dot_)com or test(_at_)nothotmail(_dot_)com(_dot_)
I haven't thought through exactly how this will work. Obviously everything
on the left side of the @ would have to match exactly and everything on the
right side of the @ would be treated like the domains idea given above.
Would be nice if I could figure out a way to do this with only one grep (or
even awk or perl or something like that) but it's gonna be a toughy. I'm
not averse to putting both lists in one file either.
Rejected e-mail would just be tagged with an extra header and be filtered
using my e-mail program to another mailbox for a while as I build up my
list of acceptable addresses. Once I'm comfortable that I've got
everything working, I'll want to have it send a message to people who send
rejected mail asking them to click on a link that will add them to the
"greenlist" and then resend their message (or have the message stored or
something to automatically send it to me.)
Basically I'm wondering if anyone has done something like this before and
if so can give me some pointers.
Thanks,
Mark
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail