-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17 Mar 00, at 10:24, Chris Hardie wrote:

> 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.  

Sure. Please think about how qmail works:
qmail-smtpd gets message, passes to qmail-queue, message gets 
queued, stop.
qmail-send wakes up, passes message to qmail-local, it passes 
message to procmail.

The TCPREMOTEIP is present only in the first part - ie. qmail-
smtpd (and wrappers) and qmail-queue (and wrappers).

In the second part, you're not going to find it. All you can try to do 
is parse headers, and find the last (first) Received: line and read 
the originating IP; or you can ask qmail-smtpd, qmail-queue or 
wrapper thereof to record a special X-TcpRemoteIp: header to the 
message, as it gets spooled onto the disc.

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBONJBTlMwP8g7qbw/EQIrGwCg/pP9ond7CKDpFTAKnCgb/xXG7wwAn0x7
gv4zLjR2s5f6ve8RdMwhPa6s
=igOo
-----END PGP SIGNATURE-----
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
                                                             [Tom Waits]

Reply via email to