Re: [Exim] Help with conditional header re-writing

Top Page
Delete this message
Reply to this message
Author: Edouard Boucher
Date:  
To: Pedro I. sanchez, exim-users
Subject: Re: [Exim] Help with conditional header re-writing
> 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