I need to somehow test to To:,CC:, BCC: for the existence of a bad
recipient or some kind of "user-slamming" technique.
I can get my entire list of valid recipients from my system files by doing
this:
$USERS=`cat passwd.interplas.com aliases.interplas.com | cut -f1 -d: | sort
| uniq`
So if I have an email come in with:
To: eric(_at_)interplas(_dot_)com, erik(_at_)interplas(_dot_)com,
erika(_at_)interplas(_dot_)com,
tom(_at_)xyz(_dot_)com, tommy(_at_)xyc(_dot_)com
I need that message to fail because erik and erika doesn't exist, yet the
message gets through to me, eric.
So I need some kind of loop to:
1. Eliminate all recipients except interplas.com people. So I end of with
eric, erik, and erika.
2. Test that all recipients belong in my $USERS list.
Much appreciated! Thanks!
-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