Author: Martin Kaiser Date: To: exim-users Subject: [Exim] redirecting several domains
Hi everybody,
I just to set up exim 4.10 to redirect all mails for user@???
to user@???.
aliasRedirect:
driver = redirect
user = mailnull
group = mail
domains = domain1.com
data = $local_part@$domain2.com
This works fine. Now I'd like to set up the same for several domains
user@*.domain1.com should be redirected to user@*.domain2.com. In fact,
this will be used for country subdomains like de.domain1.com,
uk.domain1.com.
The solution should probably have a domainlist
domainlist myDomains = *.domain1.com
and the router works on these domains:
aliasRedirect:
driver = redirect
user = mailnull
group = mail
domains = +myDomains
...
How do I reference the part that matches the * in the regexp?