Author: Andre Grueneberg Date: To: exim-users Subject: Re: [exim] Different relays
Sascha Andres wrote: > I have an internal Groupwareserver (Exchange) that takes
> SMTP messages and can send them via relay. As a relay I want
> to use exim. The internal domein is internal.domain.net and
> on the relayall mails from me@??? needs to
> be rewritten to me@???. Then they need zo be sent to
> our providers mail server.
> To get mail I need to fetch them (I thought about using
> fetchmail) and relay them to the groupware server but
> rewriting the other way: me@??? needs to become
> If I understood the docs correctly routers would be a
> starting point, but how about rewriting and routing based on
> initial mail adress?
Why would you need to do that?
Just rewrite any From-field for *@internal.domain.net to *@domain.net
and any To-field for *@domain.net to *@internal.domain.net
Your rewrite section in your configuration would like like this: