On Tue, 9 Dec 1997, Peter Seebach wrote:
Can anyone suggest a good way to spell "From and To are the same, and
don't look local"?
For an exact match of From and To this should do it.
MYDOMAIN=somesite.net
FROM=`formail -X"From:"|formail -zrxTo`
TO=`formail -x"To:"`
:0 flag and lock as needed
* $ FROM ?? "$TO"
* ! $ FROM ?? "$MYDOMAIN"
your action here
Also, let's say I want to bounce everything as user unknown, but I don't
want to get returned bounces when the from address was illegitimate.
If by "bounce" you mean sending mail to the spammer, I think it is bad
practice. If the bounce even gets to the spammer, the spammer drops it on
the floor unseen.
The naive "just bounce as user unknown" gets bounces to postmaster on
our attempts to bounce spam...
Which is the best reason to not bounce or send autoreplies.
Is there an obvious way to do this?
If you _must_ return the mail, set EXITCODE=77 ahead of the recipe that
delivers spam to your spam-folder or /dev/null. That returns mail with a
notice of "insufficient permissions". These returns still get dropped on
the floor by spammers and doubles your systems load in handling your spam.
The return may still wind up in your system administrators lap. If it's
junk, treat it like junk, and just recycle the bytes.
David Hunt <dh(_at_)west(_dot_)net>