procmail
[Top] [All Lists]

Re: Passing RCPT_TO value to procmail

2001-12-13 04:30:35
----- Original Message -----
From: "Bram Kivenko -- Kivco Consulting Inc." <bram(_at_)xspace(_dot_)com>
To: <procmail(_at_)informatik(_dot_)RWTH-Aachen(_dot_)de>
Sent: Thursday, December 13, 2001 5:59 AM
Subject: Passing RCPT_TO value to procmail

Unfortunately, spammers rarely include the actual To: address in their
emails -- is it possible to pass the RCPT_TO line from the SMTP session
from Sendmail to Procmail so that I can capture who has put me on a
list?


As I said earlier, the RCPT_TO is as unreliable as what appears in the DATA
stream. Basically, the envelope-from is not any more trustworthy than what
may appear in the headers. I mean, if you remove "authwarnings" from your
PrivacyOptions (in sendmail.cf,) you could run sendmail with the -f option
to create an envelope address of your choice, and do so with impunity. Just
because the envelope-from is a little less accessible to your typical mail
client, don' make it more reliable. :)

But to answer the question: it depends on how you invoke procmail. If you do
it via a mailer definition within sendmail.cf (preferred option, as far as I
am concerned), you can parse all those kewl macros to it, like $f (the
envelope-from), for instance; or $&{client_addr} even. You could set
something like: "A=procmail -Y -m $h $f $u
". This is not possible with the .forward scheme.

- Mark

        System Administrator Asarian-host.org

---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>