--On Dienstag, 13. Januar 2004 12:37 -0800 "Mitch \\(WebCob\\)"
<[EMAIL PROTECTED]> wrote:

> Hi Roland - thanks - but if you read the followups I got it to work - the
> problem is that courier DELETES empty env's which have to be forced before
> calling programs that depend on their existance - not the value they
> contain.
> 
> cc "| env SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"

was:

>> to "| SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"

I referred to the single quote which will prevent any variable
expansion under sh. Test for yourself:

$ SENDER='$SENDER' env | grep SENDER

I am surprised expansion within single-quotes works with env...


But the point is still there: TDMA is supposed to return challenges
to unknown senders which is just not possible with bounces.
And tdma especially trolls for bounces with exactly those challenges.

The line in .mailfilter should be something like:

cc "| test \"$SENDER\" && tdma-filter"

now the exitcodes from this line will be:

0: tdma approved
1: bounce, empty or missing sender
99: tdma nagging (possibly forged) sender

and then simply stop further processing on 99:

if ($EXITCODE == "99")
{
        EXITCODE=0
        exit
}

...continue .mailfilter processing


If you want to do the same thing from .courier I'd suggest something
like the following. Here we have to take care not to return '1' to
courier because this would be interpreted as temporary failure and
retried forever:

| test "$SENDER" && { tdma || exit 99; } || exit 0
./Maildir/

of course this is all untested since I never would use TDMA or
any other such abusive filtering methods.

And yes, courier should not remove the empty sender imho, but there
is also no reason for tdma to be so picky about...

Roland



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to