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.
Not much of a source hacker I did go into received.c and tried adding
char renv[16];
strcpy(renv, "REMOTE_SMTP");
setenv(renv, remotehost,1);
to received() but it doesn't seem to be doing the trick.
I'm also quite inexexperienced at qmail so sorry if this is well known
but I haven't found it in the doccage yet.
-mark
--
mark jeftovic
http://www.easydns.com
http://mark.jeftovic.net