Re: remove from pending process
"Thiago Lima" <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
Ok, now I got how it works. TMDA does not delete the pending message from queue when the message is released. It deleted the message when it passes thru tmda-inject and has those headers. X-TMDA-Confirm-Done: 1173637813.10903.391df5 X-TMDA-Released: Sun, 11 Mar 2007 14:30:28 -0400 If it has those headers tmda deletes it from pending directory. My problem is that when the message is released it is passed to postfix #1, this postfix does not have tmda installed and because of that is does not delete the messages from pending. To correct this behavior to my needs I changed Pending.py to delete the message when it is released. Now everything is working fine. I´ll try to write a howto about it, this week and post on the website. I belive that many people want to protect their exchange servers with an fine opensource mailserver like postfix and a *free* challenge-response software like TMDA. Stephen, thank you for your answer. It let me to the solution. On 3/10/07, Stephen Warren <[email protected]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Thiago Lima wrote: > > I´m sending this to both lists (users and devel) because I believe > > that maybe an user can answer me, but the developers can surely answer. > > Developers are typically subscribed to both lists; no need to double-post. > > > I´m having a huge problem with TMDA. I´m setting up a relay server > > for TMDA using postfix. I´ve made all work great. My only problem is > > that I found a circustance where the pending message is released but it > > is not removed from pending directory. > > ... > > Postfix #2 runs only in external address. It receives the mail, passes > > antispam and forwards it to tmda. If I uses only this postfix the > > pending message is deleted when released. > > What do you mean by "only use this postfix". What exact configuration > changes do you make to "use only this postfix" v.s. not "use only this > postfix"? > > > 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. > > See the TMDA documentation for the variable PENDING_CLEANUP_ODDS. If you > set this value low enough, I expect that you'll find that sometimes the > released message is deleted, and sometimes not (assuming mail traffic is > light, and you don't have so much TMDA processing going on that you're > guaranteed to hit PENDING_CLEANUP_ODDS in the time it takes you to quit > tmda-pending, and ls the pending directory). > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFF8mBUhk3bo0lNTrURAn94AKD1UzfMUH+eEo+9NxOa+F2LFkorjwCg0VP2 > GTywCG+PnujXoiIkijwX8bA= > =fLF0 > -----END PGP SIGNATURE----- >