robert(_at_)elastica(_dot_)com writes:
i'm using the LUSER_RELAY feature in sendmail v8 and I would like to
know how to correctly bounce a message with "Unknown User" using
procmail.
I'm assuming that you're not doing this for all users without real
accounts, as otherwise the easiest solution is to *not* use LUSER_RELAY.
If it does server some purpose at your site, then the thing to do is
have procmail tell sendmail that this address is for an unknown user:
:0
* some conditions that indicate that this is an unknown user
{
# EX_NOUSER=67 from sysexits.h
EXITCODE = 67
# Stop processing this .procmailrc. Note that if this procmailrc is
# not the last on the procmail's command line than this won't work.
# You should comment it out and instead use the rule that immeadiately
# follows. Unsetting the HOST variable is faster for those circumstances
# where it works.
HOST
:0 h
/dev/null
}
Philip Guenther