Darek M | 1 Apr 2011 21:38
Picon

postfix+tmda-postfix-policy.sh

Hi there,

I think I'm missing a step in this policy script.  In this bit of
code, which is pretty much the meat and potatoes of the whole thing:

    tmda-filter -M $recip $sender | grep MATCH | grep -q bounce$
    ## If they find something in the filters, dispose of the message.
    if [ $? = 0 ]; then
        [ -n "$LOGGER" ] && $LOGGER -p mail.info -t postfix/tmda \
                 "Rejecting email recieved from $sender to $recip"
        echo "action=reject Message rejected by recipient (TMDA)."
        echo
    else
        [ -n "$LOGGER" ] && $LOGGER -p mail.info -t postfix/tmda \
                   "Permitting email recieved from $sender to $recip"
        echo action=permit
        echo
    fi

If I put a sender address in the 'bounce' filter file, it gets rejected at SMTP.

But if the address isn't listed anywhere (the "else" block), the
message gets passed right on through to the inbox.  Am I reading this
right?  Where is the challenge created?  I must be missing a step as
it seems the script only checks if a sender is explicitly blacklisted,
and if not, the mail is permitted.

--

-- 
Darek

(Continue reading)

Kevin Goodsell | 1 Apr 2011 22:04
Picon

Re: postfix+tmda-postfix-policy.sh

On Fri, Apr 1, 2011 at 12:38 PM, Darek M <fafaforza <at> gmail.com> wrote:
>
> But if the address isn't listed anywhere (the "else" block), the
> message gets passed right on through to the inbox.  Am I reading this
> right?  Where is the challenge created?  I must be missing a step as
> it seems the script only checks if a sender is explicitly blacklisted,
> and if not, the mail is permitted.

I don't know anything about this configuration, but doesn't the
description of this script
(http://tmda.sourceforge.net/cgi-bin/moin.cgi/TmdaPostfixPolicy)
explicitly say confirming isn't supported?

It kind of seems like confirming should still be supported as a
delivery step (e.g., if this is combined with the more traditional
~/.forward filtering), but perhaps there's some reason this doesn't
work.

Are you using .forward to process mail through TMDA?

-Kevin

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
tmda-users mailing list
tmda-users <at> lists.sourceforge.net
(Continue reading)


Gmane