Re: [exim] Redirect/Rewrite Problem

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Fred Viles
Date:  
À: exim-users
Sujet: Re: [exim] Redirect/Rewrite Problem
On 30 May 2005 at 23:33, Martin Heiden wrote about
    "[exim] Redirect/Rewrite Problem":


| The host recieves email which was previously captured for a domain and
| forwarded to a single email address:

|...

Does the forwarding MX preserve the original envelope recipients in
some header? Envelope-To: maybe?

|...
| AFAIK just the envelope is affected by this forward.


That's not a "just". The envelope is the only place the actual
recipient addresses appear. You can't count on message headers like
To: having any meaningfull content.

| Now the
| receiving host has to expand the original recipient addresses
| (@mydomain.com) and deliver the mail localy.


Unless the original envelope recipients are passed on by the
forwarding MX in an added header, the addresses are lost.

| Mail to non-existent
| users should be bounced to the original sender.


No it shouldn't. It will be almost entirely spam and virii, much of
which will have forged the addess of some innocent victim as the
sender.

| Any idea how to do that?


In exim, a redirect router can extract addresses from a header like
Envelope-To:. But maybe a tool like fetchmail would make more sense?

- Fred