Re: [Exim] Rewriting addresses

Inizio della pagina
Delete this message
Reply to this message
Autore: Matthew Daubenspeck
Data:  
To: exim-users
Oggetto: Re: [Exim] Rewriting addresses
I see now thanks. I actually got part of it working, but still don't think
I can get it working exactly the way I need. I am trying to setup a virtual
domain situation where I have [for example] 10 users that belong to
domain1.com. I also have 10 users that belong to domain2.com. No matter
what MUA they use, and what settings they change [reply to, etc etc] I
would like the 10 users from domain1.com to have their outgoing addresses
written/changed to localpart@???. The same for the 10 users in
domain2.com [and so on if I add more domains].

Is this a possibility, or is there some other way I should be going about this?

Thanks for your help. Your explanation made it a bit easier to understand
vs. the exim book [which I still love and read daily :) ].

At 10:58 PM 4/2/2002, you wrote:
>On 2002-04-02 at 22:17 -0500, Matthew Daubenspeck wrote:
> > As far as I can read, all of the rewriting rules that I see (in the Exim
> > O'Reilly manual as well as FAQS) are all for incoming messages. Is there
> > anyway to rewrite OUTGOING messages?
>
>I can see where the confusion is coming from. Since you're reading the
>book, I'll pick the Exim 3 spec.txt:
>
>-----------------------------< cut here >-------------------------------
> 3. HOW EXIM DELIVERS MAIL
>
>3.2 Message reception
>
>Address rewriting that is specified in the rewrite section of the configur-
>ation (see chapter 34) is done once and for all on incoming addresses, both in
>the header and the envelope, at the time the message is received. If during
>the course of delivery additional addresses are generated (for example, via
>aliasing), these new addresses get rewritten as soon as they are generated. At
>the time a message is actually delivered (transported) further rewriting can
>take place; because this is a transport option, it can be different for
>different forms of delivery. It is also possible to specify the addition or
>removal of certain headers at the time the message is delivered (see chapters
>14 and 20).
>-----------------------------< cut here >-------------------------------
>
>Here, "incoming" is "as Exim receives it", whether that's via SMTP or
>via "local", or whatever. _Not_ "as it comes into my system from
>outside".
>
>So just set up the rewriting rules and run some tests. You should find
>them being applied to messages being sent out.
>
>After all, if you're receiving mails from the Big Wide Internet, most
>people don't have a need to rewrite arbitrary senders and stuff. Not
>unless you're gatewaying into another environment.
>
>Note too that the Exim Way is not to use rewriting for delivery logic.
>If you're trying to do so, take a closer look at the "smartuser"
>Director.
>--
>Decrypt (n & v.t.): The basement of a Jamaican church.
>
>--
>
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
>details at http://www.exim.org/ ##