-----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----- _____________________________________________ tmda-users mailing list (tmda-users@tmda.net) http://tmda.net/lists/listinfo/tmda-users