procmail
[Top] [All Lists]

How to get RBLCHECK to work with procmail

1999-03-30 14:21:32
I have a system that we want our customers to be able to opt-in for 
some SPAM filter packages we have set-up. The range from light to heavy.
So far the light is where we have an issue.
        :0
        * ! ? if [ -n "$TCPREMOTEIP" ]; then rblcheck -q "$TCPREMOTEIP"; fi
        {
                EXITCODE=77             #Qmail is 100
                LOGABSTRACT=all
                LOG="Filter: RBL-filtered address: \"$TCPREMOTEIP\"
        "
                :0:
                $FILTER_FOLDER
        }

        "FILTERFOLDER" is assumed to have been set up ahead of time as the place
        to put email that you don't want to see (either another incoming folder,
        /dev/null, or a 'formail' invokation that rewrites the message and tacks
        on an extra header or munges the subject so you can easily identify it.

The $TCPREMOTEIP is my problem. What it does is grabs the connecting mail 
servers IP. 

For a better explanation I can send the INSTALL docs to anyone who needs them
to help me solve my problem. The mail server is Sendmail 8.9.x Any help
would be appreciated.

TIA
Ron
-- 
-------------------------------------------------------------------
Ron Rosson                      ... and a UNIX user said ...
The InSaNe One                             rm -rf *
insane(_at_)oneinsane(_dot_)net         and all was null and void
-------------------------------------------------------------------
            relevancy is the opiate of the masses.

<Prev in Thread] Current Thread [Next in Thread>
  • How to get RBLCHECK to work with procmail, Ron 'The InSaNe One' Rosson <=