Re: remove from pending process
Stephen Warren <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephen Warren wrote: >>> I´ve even straced and compared the tmda-pending in both cases. And >>> *there is no difference* between a run that deletes the pending file and >>> the one that does not delete. > > By my reading of the TMDA source code, simply releasing a message > doesn't appear to directly delete the file in the pending directory at all. > > Instead, I think what's happening is this: > > When TMDA sends mail to postfix 1, it is simply forwarded directly to > your other server. The act of sending mail through postfix 1 doesn't run > TMDA on the mail a second time. > > When TMDA sends mail to postfix 2, it is processed by TMDA a second > time. Since the message now has a special header, TMDA knows not to > challenge it, and simply forwards it on to your other mail-server (or > postfix 2). > > Now, while TMDA is performing the second processing of the mail, it also > sometimes "cleans up" the pending directory, and deletes messages that > have been confirmed/released/etc. It seems that in your testing, you > have always hit this pseudo-random condition. It looks like it's a little simpler than this. During the 2nd TMDA processing of the message, TMDA sees the special header that is added during the release process and validates it, just like it would validate an incoming confirmation request. The act of validating this header will delete the message from the pending queue. This is why your test results are so black and white; it's a direct result of whether your released messages are injected into postfix 1 or postfix 2, and hence whether they are processed by TMDA a second time or not. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8mHihk3bo0lNTrURAioQAJ9BTF1TLiW9Pdu/Oijqk6X+FtAJ6gCgt4P+ zW3NWvq46OXVoh98bedrgWI= =R6Ld -----END PGP SIGNATURE-----