Re: [exim-dev] Pass recipients to spamd

Top Page
Delete this message
Reply to this message
Author: John W. Baxter
Date:  
To: exim-dev
Subject: Re: [exim-dev] Pass recipients to spamd
On 1/14/06 5:20 PM, "Jakob Hirsch" <jh@???> wrote:

> (this should have gone to exim-dev...)
>
> Ok, since nobody objected (or nobody were interested), I made a small
> patch (attached) it ran fine on my system the last days.
>
>> Looking at the code in spam.c and the spamd interface, it seems easy to
>> solve this: Send the recipients in a Envelope-To (or something else,
>
> Even easier: There's already code for it in spool_mbox.c, but it put
> only a single recipient into the header ($received_for). I changed this
> to $recipients. The only problem is a probably very long line, but that
> seems to be no problem for spamd (at least in my tests).
>
>> spamd recognizes it as a header belonging to the message. (The same
>> could've been done for the envelope-sender, but it's not of much
>
> Even that is already there, so the changed Received: header was not
> necessary (for spamd).


Putting the recipients (plural) into the Received: header, unless that
header is later (unhelpfully and non-RFC-compliantly removed) reveals BCC
recipients in the receiving domain to the To: and Cc: recipients in the
domain. That is clearly a privacy problem (the sender used Bcc for a
reason).

--John