Automatically forward all email addresses on one domain to another domain

niggles picture niggles · May 5, 2011 · Viewed 16.3k times · Source

I've had a good search on Google but can't find the answer sorry...

We're an Australian company who use a .com address as our primary contact point. Unfortunately sometimes people email to [email protected] and so the email bounces.

I know I can manually create entries to forward the .com.au addresses to their .com equivalent, but it's not a particularly viable solution longer term.

Is there a way to automatically do that mapping at a server level? We have root access so I can set up whatever is required in that regard.

To re-iterate, everytime someone sends an email to:

[email protected]

it needs to forward to

[email protected]

and I'd prefer to automate the mapping as email addresses are added / removed quite regularly.

We are also using PLESK if that makes a difference.

Thanks...

Answer

davmac picture davmac · May 5, 2011

Sounds to me like you don't need to forward at all. Just set the MX record for ourdomain.com.au to be the same as the MX record for ourdomain.com. Then configure the mail server to accept mail for both domains. The only case in which this isn't viable is if there are actually legitimate .com.au addresses that need to be handled by a separate mail server.