Thank you for your answer, I'll give it a try.
Just for curiosity, where in the FAQ is this issue addressed? I read it
before posting this question but I couldn't find an answer.
--
Pedro
On Sat, 2002-10-12 at 16:15, Edouard Boucher wrote:
> > 1. Local users will always see their own addresses as being part of the
> > @internal.domain.
> >
> > 2. External correspondents always receive e-mail as sent from @mydomain.
> >
> > I would appreciate any suggestions.
>
> i have a set up which doest exactly that
> (and by the way i find that seting in the exim FAQ) :
>
> begin routers
>
> # Handle external domain,
> # transfer with smtp
> dnslookup:
> driver = dnslookup
> domains = ! +local_domains
> transport = ${if match{$domain}{\N\your.internal.dom\N}{int_smtp}{ext_smtp}}
> ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
> no_more
>
> begin transports
>
> int_smtp:
> driver = smtp
>
> ext_smtp:
> driver = smtp
> headers_rewrite = *@your.internal.domain $1@your_external_domain
> return_path = $sender_address_local_part@your_external_domain
>
> If you have to spread this config over a lot of mail server,
> you can use a DNS server,
> i'm using DNS to have the same file on differant server,
> and querying to check what are the internal and external name of
> differant host VPNised,
> i store this kind of information in a TXT RR in the form of
> "ext_name=***"
>
>
> edouard