On Thu, Aug 08, 2002 at 01:51:11PM -0400, David Christian wrote:
I can't seem to get maildrop to reject mail, even when I exit with a
exitcode. It only goes back to the deferred list. Am I doing this wrong?
I had/have the same problem. I'm using Postfix in combination with
Maildrop as the local transport.
Both are using the exit-codes in <sysexits.h>. When Maildrop exits with
EX_TEMPFAIL (this happens e.g. when the user given with -d is unknown),
Postfix puts the offending mail into the "deferred" queue (RedHat
Linux, other environments may show different behaviour).
I could not figure out how to tell Postfix to interpret Maildrop's
EX_TEMPFAIL as EX_NOUSER, so, currently, I'm using an expensive (in
terms of processing overhead per mail) shell-wrapper to address that,
but Maildrop's advanced filtering capabilities in combination with the
easy combination of virtual and system users makes up for that.
It is entirely possible that I screwed up my installation of Postfix
and/or Maildrop, and that this approach is unnecessary. I didn't find a
more decent solution, though.
- Tim