Hi. I'm currently implementing the "spam blocking on a per user basis"
solution using rblcheck and procmail. I've got everything in place and
all the command line tests pass just fine, but for some reason, by the
time procmail has gotten a hold of the message, the TCPREMOTEIP
environment variable is not populated.
I've been desperately pouring over the configuration and doing research
and can't seem to find an explanation for this. Is there a trick to
keeping this variable populated? Should I be using some version of an
"origip" script instead? Any insights?
Here's my config:
FreeBSD 3.3-RELEASE
inetd.conf:
smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env
/var/qmail/bin/qmail-smtpd
------------------
.qmail:
| preline /usr/local/bin/procmail -p
------------------
.procmailrc:
:0
* ! ? if [ -n "$TCPREMOTEIP" ]; then /usr/local/bin/rblcheck -q "$TCPREMOTEIP"; fi
{
EXITCODE=100
LOGABSTRACT=all
LOG="Filter: RBL-filtered address: \"$TCPREMOTEIP\"\n"
:0:
$SPAMFOLDER
}
Thanks,
Chris
-- Chris Hardie -----------------------------
----- mailto:[EMAIL PROTECTED] ----------
-------- http://www.summersault.com/chris/ --