Magnus Bodin <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, Nov 01, 1999 at 06:36:01PM -0000, Robin Bowes wrote:
[snip]
> > Can anyone see any flaws in this setup? I haven't overlooked anything,
have
> > I?
>
> Yes. It's gonna break if you have temporary failure.
>
> What you want is either requeuing the mail (i.e. reporting 111 on
temporary
> and 0 on success. qmail-remote reports with letters and must be reparsed
to
> give good feedback back to qmail-local.
>
> See qmail-remote(8)
Thanks for the response.
So, what I need to do is capture the output from qmail-remote and produce
and exit code dependant upon the result codes, ie:
r Recipient report: acceptance.
h Recipient report: permanent rejection.
s Recipient report: temporary rejection.
K Message report: success. host has taken responsibil-
ity for delivering the message to each acceptable
recipient.
Z Message report: temporary failure.
D Message report: permanent failure.
Hmmmm. Presumably, if the message has several recipients, I would need to
re-queue to specific recipients if there was a temporary failure for that
recipient? Hmmm... Sounds like it's getting messy. Perhaps I'll explore
another approach.
R.