On Thu, Aug 15, 2002 at 12:58:20PM +0200, Tim Koenig wrote:
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).
This is the standard behavior of maildrop, to change that to have
postfix reject the mail. You have to apply a patch from Matthias Andre
(check the archive or google).
Sam doesn't want to exit with EX_NOUSER when the user is not existing.
(It saved me once not to lose some mail, but I think this is not
the "right" behavior). He believes that it is the MTA job to reject
unknown user from the start.
Luc