OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Meng Weng Wong (mengwongdumbo.pobox.com)
Date: Mon Oct 01 2001 - 19:58:48 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    I have a minor postfix-internals question.

    When smtp takes a long time to deliver a message, and a
    postfix reload occurs during that time, qmgr sees that the
    message is still being delivered and so defers the queue
    file from active back to incoming. When smtp returns, qmgr
    does know to move it back from incoming to active before
    taking appropriate action (deferring or deleting). But
    isn't it easier for the qmgr to just leave it in active?
    That's what the nqmgr does. While I understand most of the
    other things that go on behind the scenes, I'm curious about
    the (historical?) reasons behind this particular design
    decision.

    From src/qmgr/qmgr_active.c

         * After queue manager restart it is possible that a queue file is still
         * being delivered. In that case (the file is locked), defer delivery by
         * a minimal amount of time.
         */

        } else if (message == QMGR_MESSAGE_LOCKED) {
          if (msg_verbose || 1) msg_info("%s: message is locked, deferring back to incoming queue. why?", queue_id);
            qmgr_active_defer(MAIL_QUEUE_ACTIVE, queue_id, MAIL_QUEUE_INCOMING, 60);
            return (0);

    I added some verbosity to the latest 20010808.

    18:23:43 cleanup[3145]: 2FCB23E633: deleting queue file under defer
    18:23:43 cleanup[3145]: 2FCB23E633: deleting queue file under bounce
    18:23:43 cleanup[3145]: 2FCB23E633: message-id=<20011001222325.2FCB23E633cali-2.pobox.com>
    18:23:43 qmgr[2034]: 2FCB23E633: moving from incoming -> active
    18:23:43 qmgr[2034]: 2FCB23E633: from=<>, size=6640, nrcpt=1 (queue active)
    18:23:43 qmgr[2034]: 2FCB23E633: deleting queue file under defer
    18:23:43 qmgr[2034]: 2FCB23E633: assigning recipients to delivery requests and closing messagefile.
    18:23:43 qmgr[2034]: 2FCB23E633: qmgr_deliver: attempting send request to transport=smtp, recipient=knedrgrservicenetbest.com
    18:23:43 qmgr[2034]: 2FCB23E633: qmgr_deliver finished writing to transport=smtp, recipient=knedrgrservicenetbest.com
    18:23:43 smtp[2245]: 2FCB23E633: handling request from to knedrgrservicenetbest.com
    18:30:58 qmgr[4884]: 2FCB23E633: moving from active -> incoming
    18:30:58 qmgr[4884]: 2FCB23E633: moving from incoming -> active
    18:30:58 qmgr[4884]: 2FCB23E633: skipped, still being delivered
    18:30:58 qmgr[4884]: 2FCB23E633: message is locked, deferring back to incoming queue. why?
    18:30:58 qmgr[4884]: 2FCB23E633: deferring from active to incoming
    18:30:58 qmgr[4884]: 2FCB23E633: moving from active -> incoming
    18:31:57 qmgr[4884]: 2FCB23E633: moving from incoming -> active
    18:31:57 qmgr[4884]: 2FCB23E633: skipped, still being delivered
    18:31:57 qmgr[4884]: 2FCB23E633: message is locked, deferring back to incoming queue. why?
    18:31:57 qmgr[4884]: 2FCB23E633: deferring from active to incoming
    18:31:57 qmgr[4884]: 2FCB23E633: moving from active -> incoming
    18:32:58 qmgr[4884]: 2FCB23E633: moving from incoming -> active
    18:32:58 qmgr[4884]: 2FCB23E633: skipped, still being delivered
    18:32:58 qmgr[4884]: 2FCB23E633: message is locked, deferring back to incoming queue. why?
    18:32:58 qmgr[4884]: 2FCB23E633: deferring from active to incoming
    18:32:58 qmgr[4884]: 2FCB23E633: moving from active -> incoming
    18:33:57 qmgr[4884]: 2FCB23E633: moving from incoming -> active
    18:33:57 qmgr[4884]: 2FCB23E633: skipped, still being delivered
    18:33:57 qmgr[4884]: 2FCB23E633: message is locked, deferring back to incoming queue. why?
    18:33:57 qmgr[4884]: 2FCB23E633: deferring from active to incoming
    18:33:57 qmgr[4884]: 2FCB23E633: moving from active -> incoming
    18:34:56 qmgr[4884]: 2FCB23E633: moving from incoming -> active
    18:34:56 qmgr[4884]: 2FCB23E633: skipped, still being delivered
    18:34:56 qmgr[4884]: 2FCB23E633: message is locked, deferring back to incoming queue. why?
    18:34:56 qmgr[4884]: 2FCB23E633: deferring from active to incoming
    18:34:56 qmgr[4884]: 2FCB23E633: moving from active -> incoming
    18:35:55 qmgr[4884]: 2FCB23E633: moving from incoming -> active
    18:35:55 qmgr[4884]: 2FCB23E633: skipped, still being delivered
    18:35:55 qmgr[4884]: 2FCB23E633: message is locked, deferring back to incoming queue. why?
    18:35:55 qmgr[4884]: 2FCB23E633: deferring from active to incoming
    18:35:55 qmgr[4884]: 2FCB23E633: moving from active -> incoming
    18:36:03 cleanup[1677]: CA37E2276B: message-id=<20011001222325.2FCB23E633cali-2.pobox.com>
    18:36:19 smtp[2245]: 2FCB23E633: to=<knedrgrservicenetbest.com>, relay=growl.pobox.com[208.210.125.27], delay=756, status=sent (250 Ok: queued as CA37E2276B)
    18:36:19 smtp[2245]: 2FCB23E633: communicating status 0 back to qmgr.
    18:36:19 smtp[2245]: 2FCB23E633: communicated status back to qmgr with errorcode -1. responsibility ends.
    18:36:20 qmgr[4884]: 2FCB23E633: moving from incoming -> active
    18:36:20 qmgr[4884]: 2FCB23E633: from=<>, size=6640, nrcpt=1 (queue active)
    18:36:20 qmgr[4884]: 2FCB23E633: deleting queue file under defer
    18:36:20 qmgr[4884]: 2FCB23E633: assigning recipients to delivery requests and closing messagefile.
    18:36:20 qmgr[4884]: 2FCB23E633: qmgr_active_done starting
    18:36:20 qmgr[4884]: 2FCB23E633: deleting queue file under active
    18:36:20 qmgr[4884]: 2FCB23E633: all done. removed.

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users