On Wed, Nov 13, 2013 at 11:18:32AM -0600, List wrote:

> I am building a script to handle some specific recipients so I will
> be using transport to handle their domain.  The script may run for a
> long period of time (up to 30 seconds) and I am wondering if there
> is a way for the script to let postfix know I have received the
> message and let it continue on while it is doing it's work?

You'd have to commit the message to an internal queue managed by
the script, and arrange for periodic queue scans...  Otherwise,
if the script tells Postfix its done, but it is not done and
crashes, mail is lost.

All of that is too much work, that's what Postfix does well.  So
you're better off not doing that.  Just let Postfix wait for the
script.  If the script is not or disk CPU intensive (spends a lot
of time waiting for responses from remote systems, ...) you can
raise the transport concurrency to allow more copies of the script
to run in parallel.

If you really want your own queue, you can do that of course, but
it is not clear why you would.

-- 
        Viktor.

Reply via email to