Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically forward all email addresses on one domain to another domain

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...

like image 588
niggles Avatar asked May 05 '11 01:05

niggles


1 Answers

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.

like image 185
davmac Avatar answered Oct 22 '22 12:10

davmac