Mark Jeftovic <[EMAIL PROTECTED]> wrote:

>I'm playing with a privacy gateway for whois records. To make a long
>story short I want to be able act based on which remote mail server
>is sending me the message.
>
>Looking at the environment when I pipe to a perl script I see nifty
>settings such as DTLINE, RECIPIENT, LOCAL and HOST.
>
>What I also need is something like REMOTE_SMTP, which would contain
>the hostname or IP of the mail hub giving us the email.

You can parse that from the Received fields.

>Not much of a source hacker I did go into received.c and tried adding

Stop right there. Do NOT hack qmail's source unless you *really* know
what you're doing.

-Dave

Reply via email to