It would be done better in sendmail or whatever other mail daemon you
are using, but it could be done in procmail with something like this:
:0
* ! ^From:.*@(ourdomain\.com|\
second\.safe\.place\.gov|\
other\.safe\.domain\.org)
{
# exit 77 is 'no permission' iirc
EXITCODE=77
:0
/dev/null
}
I'd test it first to make sure it works before putting it 'live'...
perhaps a separate mailbox for 'illegal' messages
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail