procmail
[Top] [All Lists]

Re: Q: using your own delivery program

1999-05-20 05:14:09
On Thu, 20 May 1999 13:01:15 +0200 (MET DST), "Gjermund Sørseth"
<gjermund(_at_)nextel(_dot_)no> wrote:
     :0
     | /bin/deliver-mail
But sometimes delivery might not succeed, so you want procmail to exit
with the same exit code as "deliver-mail" does, so that the MTA can

If you fall through, propagate the exit code back to the caller.

    :0
    | /bin/deliver-mail

    # Exitcode from deliver-mail will be non-0 if we fall through to here
    #  (and it's reporting exit codes correctly)

    EXITCODE=$?

If you want the message to be requeued instead of saved to DEFAULT,
you should probably also exit immediately (e.g. by setting HOST).

/* era */

-- 
.obBotBait: It shouldn't even matter whether     <http://www.iki.fi/era/>
I am a resident of the state of Washington. <http://members.xoom.com/procmail/>
 * Sign the European spam petition! <http://www.politik-digital.de/spam/en/> *

<Prev in Thread] Current Thread [Next in Thread>