smtp-check-sender has a small bug that causes a broken
pipe when $SENDER is empty.  This is easily fixed by
adding:

   data = sys.stdin.read()
   if len(sys.argv) < 2: sys.exit(1)

before the line that sets address_to_verify, and
deleting the subsequent read on stdin.

Also, for users who tag their envelope sender (no
reason not to, in my opinion), this small script dumps
fake bounces (where the spammer sets the envelope
sender to "<>"):

----------------------------------------
# for use with TMDA tagged envelope sender
#
# called from incoming filter file as (e.g.):
#   pipe '~/bin/check-valid-bounce' drop

if [ -z $SENDER ]; then
        if [ -z $EXT ]; then
                exit 0 # invalid sender
        fi
fi

exit 1 # valid sender

----------------------------------------

Hope this is useful.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to