Re: [exim] Different relays

Pàgina inicial
Delete this message
Reply to this message
Autor: Andre Grueneberg
Data:  
A: exim-users
Assumpte: 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
> me@???.
>
> 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:

*@internal.domain.net $1@??? Ffcrs
*@domain.net $1@??? Tt

You won't need any changes to routers etc. just have a working DNS.

Andre
--
Swap read error, you lose your core image.