Forward emails from domain A to B

jasne

Verified User
Joined
Sep 28, 2011
Messages
52
Hi,

I have a domain DOMAIN.COM where is created 100 email accounts.
Second domain is DOMAIN.EU where is no email accounts.
Now Im looking for a solution how make below example:

someone send email to user [email protected] . Now email is forwarding
to [email protected]

I wouldn't to make a email account and forwards in domain DOMAIN.EU
 
You cant have email account on forwarder domain, you need to remove the domain pointer and add the second domain as domain.

Regards
 
Have I got this right: there's no way to do what jasne wished? You have to create email accounts on both domains and use them separately?
 
Hi,

I have a domain DOMAIN.COM where is created 100 email accounts.
Second domain is DOMAIN.EU where is no email accounts.
Now Im looking for a solution how make below example:

someone send email to user [email protected] . Now email is forwarding
to [email protected]

I wouldn't to make a email account and forwards in domain DOMAIN.EU

If I'm not mistaken, you can do this by editing exim.conf at domain.eu and adding a router, something like this

redirect_To_DomainCom:
driver = redirect
data = ${if eq {$domain} {DOMAIN.eu} {${local_part}@DOMAIN.com} {} }
no_verify
no_more

I've not tested this (it's taken from my remote email backup config) so you should test/read up on the Exim configurations to determine if it works for your case.

Basically, what it does is check that the email is being sent to DOMAIN.eu, doesn't care if the email account actually exists, simply redirects it to DOMAIN.com and stops trying any other exim routers for this email.
 
Back
Top