Re: [exim] Is it posible to copy the original rcpt to to a m…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Oliver von Bueren
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Is it posible to copy the original rcpt to to a message header?
For that the Transport is too late to achieve it. I'd suggest you look
at the Router options, especially address_data, and play with that.
Check chapter 15ff of the documentation. I did not play with that up
till now, so I don't have a "ready made solution" for it. But others
might have?!

BTW: if you don't know that already, you can test many things exim does
with "exim -bh <source-ip> -d". That way you can simulate an SMTP
session coming from that source ip and see how exim processes it. As an
example, my virtual router gives something like this for a message to
foo@???:

--------> virtual router <--------
local_part=foo domain=domain.com
[...]
expanded: foo, bar
[...]

Oliver

B. Tkatch wrote:
> Excellent. That works well.
>
> Is there a way to get the envelope address before it is rewritten?
>
> B.
>
> On Thu, 02 Oct 2008 17:52:57 -0400 Oliver von Bueren
> <maillist@???> 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:
>>
>> 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: Bob@???
>>> DATA
>>> FROM: Alan@???
>>>
>>> text
>>> .
>>>
>>> A rewrite rule changes Bob@??? to
>>>
>> Bob@???
>>
>>> The headers of the final email received by
>>> Bob@??? would include:
>>>
>>> X-Orig-RCPT-TO: Bob@???
>>> FROM: Alan@???
>>>
>>> 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/Ioyw6h4euX1Ehh1rbAR10jvzWA3Zmw6HL1GY
>> XkTKXepdnUN6MEnEHD/
>>
>>>
>>>
>> --
>> ## 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/
>>
>
> --
> Hotel pics, info and virtual tours. Click here to book a hotel online.
> http://tagline.hushmail.com/fc/Ioyw6h4eRCkr6PDia5xDOhTlcBNwD7EwMTJa2X8gB0KQjYFSSUk3rn/
>
>
>