Noah Sheppard:
> On Thu, Dec 17, 2009 at 05:53:13PM -0500, Wietse Venema wrote:
> > Noah Sheppard:
> > > [..] postfix keeps trying to deliver the message for a long time
> >
> > procmail returns a TEMPORARY error condition to Postfix.
> > Don't blame Postfix for procmail brain damage.
> > 
> 
> Understood. Actually, this was our fault as we have the '-t' switch on
> our procmail command, so procmail exits with EX_TEMPFAIL rather than
> EX_CANTCREAT.
> 
> As there is no exit code to tell postfix that delivery failed due to
> quota issues, is there any other way to insert a hook which checks and
> rejects on a per-user basis after we know the size of the message, and
> can tell postfix to return a 5.2.2 DSN?

With the pipe-to-command/exit-status protocol, the only way to 
flag an hard error is by exiting with a status that reports a
hard error, or by sending something to stdout that begins with
a 5.2.2 status code.

man 8 pipe

        Wietse

Reply via email to