Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Envelope-To after Alias Redirect

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


jonathan at fluent

Oct 26, 2009, 10:24 AM

Post #1 of 4 (193 views)
Permalink
Envelope-To after Alias Redirect

Hi,

When using a redirect in Exim for an Alias, the Envelope-To is re-
written for future lookups.

So bob[at]domain.com -> james[at]domain.com

Then does future lookups for james[at]domain.com when checking things
like spam if a user should be checked for spam.. $local_part and
$domain for example.

When writing the Message to the Maildir it also writes Envelope-To: as
the redirected Email Address and not the Email Address which was
originally sent to..

How can I make it write the original email address which was entered
in the RCPT To and not the address redirected to?

Jonathan


--
## 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/


jonathan at fluent

Oct 27, 2009, 3:07 AM

Post #2 of 4 (168 views)
Permalink
Re: Envelope-To after Alias Redirect [In reply to]

Can someone tell me if this is possible?

Jonathan

On 26 Oct 2009, at 17:24, Jonathan Gilpin wrote:

> Hi,
>
> When using a redirect in Exim for an Alias, the Envelope-To is re-
> written for future lookups.
>
> So bob[at]domain.com -> james[at]domain.com
>
> Then does future lookups for james[at]domain.com when checking things
> like spam if a user should be checked for spam.. $local_part and
> $domain for example.
>
> When writing the Message to the Maildir it also writes Envelope-To: as
> the redirected Email Address and not the Email Address which was
> originally sent to..
>
> How can I make it write the original email address which was entered
> in the RCPT To and not the address redirected to?
>
> Jonathan
>
>
> --
> ## 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/


--
## 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/


iane at sussex

Oct 27, 2009, 4:13 AM

Post #3 of 4 (168 views)
Permalink
Re: Envelope-To after Alias Redirect [In reply to]

--On 26 October 2009 17:24:55 +0000 Jonathan Gilpin
<jonathan[at]fluent.ltd.uk> wrote:

> Hi,
>
> When using a redirect in Exim for an Alias, the Envelope-To is re-
> written for future lookups.
>
> So bob[at]domain.com -> james[at]domain.com

Please use "example.com", or a domain similarly reserved by RFC2606
<http://www.apps.ietf.org/rfc/rfc2606.html> for examples like this.

>
> Then does future lookups for james[at]domain.com when checking things
> like spam if a user should be checked for spam.. $local_part and
> $domain for example.
>
> When writing the Message to the Maildir it also writes Envelope-To: as
> the redirected Email Address and not the Email Address which was
> originally sent to..

The docs say that the transport option envelope_to_add uses "the original
address(es)in the incoming envelope that caused this delivery to happen." I
guess that means after earlier rewriting during routing...

> How can I make it write the original email address which was entered
> in the RCPT To and not the address redirected to?

You may be able to use $original_domain and $original_local_part with
headers_add in the transport configuration, but I've not tried it myself.
Or, you might use it with headers_rewrite if you discover that you're
adding a second Envelope-To: header.
>
> Jonathan



--
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see http://www.sussex.ac.uk/its/help/

--
## 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/


jonathan at fluent

Oct 29, 2009, 7:23 AM

Post #4 of 4 (155 views)
Permalink
Re: Envelope-To after Alias Redirect [In reply to]

Would no_rewrite achieve this?

Jonathan

On 26 Oct 2009, at 17:24, Jonathan Gilpin wrote:

> Hi,
>
> When using a redirect in Exim for an Alias, the Envelope-To is re-
> written for future lookups.
>
> So bob[at]domain.com -> james[at]domain.com
>
> Then does future lookups for james[at]domain.com when checking things
> like spam if a user should be checked for spam.. $local_part and
> $domain for example.
>
> When writing the Message to the Maildir it also writes Envelope-To: as
> the redirected Email Address and not the Email Address which was
> originally sent to..
>
> How can I make it write the original email address which was entered
> in the RCPT To and not the address redirected to?
>
> Jonathan
>
>
> --
> ## 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/


--
## 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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.