I'm sorry, I've asked this before. I just can't seem to get a solution with
procmail.
A mail comes in because "art" is a valid user on my system. However I see
everyone else in the header but one or more of those other guys I know
doesn't exist. Non-existant users are just as good as spam.
To: flores(_at_)interplas(_dot_)com, henderson(_at_)interplas(_dot_)com,
chamberlain(_at_)interplas(_dot_)com,
art(_at_)interplas(_dot_)com, holbrook(_at_)interplas(_dot_)com,
tom(_at_)xyz(_dot_)com, john(_at_)lmy(_dot_)com
I want to be able to take all the names of @interplas.com of the To: field
and if there exists at least one invalid user, chunk the whole email.
officiallist="art eric etc.........."
TO_list="flores henderson chamberlain art holbrook"
For EmailName in TO_list
if EmailName not in officiallist
then
is_spam=1
fi
next
Much appreciated!!
-eric wood
____________________________________________________________
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