Please Cc any replies to me since I'm not on the list yet, thanks.
I'm trying to use EXITCODE=67 to reject SPAM based on certain criteria.
Unfortunately, it doesn't always work as expected, and I'm surprised it
fails. The most obvious case is where the Received: bears no resemblance
to the From: header:
From 64687116(_at_)ix(_dot_)netcom(_dot_)com Tue Feb 3 23:36:11 1998
Received: from ws1.TorahLink.com ([188.8.131.52])
I thought that by using the EXITCODE, I would be assured that the email
would be *rejected* from ws1.TorahLink.com, but in fact Sendmail 8.8.7
attempts to deliver the "user unknown" to netcom.com, which is obviously
Is there any way at all to get around this (force the rejection at delivery
time)? Better yet, is there some sort of check to make sure that the
Received domain reasonably matches the From: domain?