Re: [exim] [Newbie] Using To: header to replace envelope rec…

Pàgina inicial
Delete this message
Reply to this message
Autor: jpetry
Data:  
A: exim-users
Assumpte: Re: [exim] [Newbie] Using To: header to replace envelope recipient?
jpetry@??? wrote:
> All mail for addresses at foo.com is sent to foomail@??? by
> the DNS provider.
>
> The To: headers are preserved in the messages.
>
> Is it possible to extract the local part from the To: header
> and use it for delivery?
>
> i.e.
>
> fred@??? would arrive as foomail@???
> and be delivered to fred@???.
>
> bob@??? would arrive as foomail@???
> and be delivered to bob@???.


I am assuming at the moment that there is just one address
in the To: header.

Given that, I have added a .forward file to the foomail
account:

# Exim filter
deliver "$header_to"


This is working, but I would like to do this in the
Exim configure file if at all possible.

Best Wishes,
James