--On 2 October 2008 23:52:57 +0200 Oliver von Bueren <[EMAIL PROTECTED]> 
wrote:

> On the transport add the keywords envelope_to_add and  return_path_add
> to accomplish this. From the documentation you have the following example:

Please don't do this. It will put all the recipients into the header, 
including Bcc recipients.

That's explicitly discourage in the RFCs (eg, section 7.2 of rfc5321, which 
replaced 2821 yesterday), because it risks revealing private information: 
"Especially when more than one RCPT command is present...SMTP clients and 
servers SHOULD NOT copy the full set of RCPT command arguments into the 
header section"

If you are going to do it, you should have a two stage process. The first 
should split the message for single recipients, and the second should use 
envelope_to_add. Again, in section 7.2: "sending SMTP systems that are 
aware of "bcc" use MAY find it helpful to send each blind copy as a 
separate message transaction containing only a single RCPT command".

You could achieve the latter with a router that routes back to your server, 
using

> local_delivery:
>   driver = appendfile
>   file = /var/mail/$local_part
>   delivery_date_add
>   envelope_to_add
>   return_path_add
>
> And in the main configuration options I've got
> delivery_date_remove = true
> envelope_to_remove = true
> return_path_remove = true
> to remove any such header that might be in a message getting into the
> system.
>
>        Oliver
>
>
> B. Tkatch wrote:
>> Is there a way to copy the RCPT-TO address to a message header? If
>> so, can it be done with the original address before any rewrites?
>>
>> That is (the different RCPT TO and FROM is intended to highlight
>> the issue):
>>
>>  RCPT TO: [EMAIL PROTECTED]
>>  DATA
>>  FROM: [EMAIL PROTECTED]
>>
>>  text
>>  .
>>
>> A rewrite rule changes [EMAIL PROTECTED] to [EMAIL PROTECTED]
>>
>> The headers of the final email received by
>> [EMAIL PROTECTED] would include:
>>
>>  X-Orig-RCPT-TO: [EMAIL PROTECTED]
>>  FROM: [EMAIL PROTECTED]
>>
>> Is this possible with exim4? I can only get add header to user the
>> message header and not the envelope address.
>>
>> Brian
>>
>>
>>
>>
>> --
>> Boost your business with a small business loan. Click now!
>> http://tagline.hushmail.com/fc/Ioyw6h4euX1Ehh1rbAR10jvzWA3Zmw6HL1GYXkTKX
>> epdnUN6MEnEHD/
>>
>>



-- 
Ian Eiloart
IT Services, University of Sussex
x3148

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to