On Wed, Mar 09, 2005 at 12:32:16PM -0700, Pablo Carapella wrote:
Most of the spam coming through is sent to other people in my company
many of whom are no longer with us and their accounts have been
deleted. How is it that other people on the server are getting those
e-mails.
What is on the To: line is basically irrelevant. What was on
the envelope-to that your server saw is what matters. It's
trivial to send a mail to you but have the To: header say
that it's to Joe Blow.
You could filter such that if the mail arrives for $LOGNAME but
the message includes people listed on the To: or Cc: line no longer
there, junk the email.
The best heuristic for doing that depends on how many users you
have on your system. If not so many, you can just put the list
in memory in a var assignment. Otherwise, you'll need to have
a list in a file or a filehash of some kind.
--
dman
____________________________________________________________
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