I've moved some sites from our Namecheap (dedicated) server to AWS (EC2) machine for several reasons. However, I want to use the existing Namecheap server for email (boxes) for those sites. We've WHMCS available there & we are able to create users/accounts/hosting there.

I found the following guide but didn't understand it: https://support.cpanel.net/hc/en-us/articles/360061616093-How-To-set-up-email-to-be-hosted-on-a-different-server

We've dedicated IP for both servers too.

Any help will be greatly appreciated.


1 Answer 1


This should be pretty simple. All you need to do is configure your DNS records so your site works from the AWS server and your emails work from Namecheap.

You should do this in the panel to which the domain is currently pointing. If you use cPanel/WHM on Namecheap I'll recommend you to point your domain to their service and configure the DNS records from the cPanel interface as it's usually more friendly.

In general terms what you'll need to do is:

  1. Configure an A record for your-domain.com pointing to the IP in AWS and a CNAME record for www.your-domain.com pointing to your-domain.com. This will make your site to work from AWS.

  2. Then, configure an A record for mail.your-domain.com pointing to the IP provided by Namecheap (where your emails are hosted) and then configure the MX record so it points to mail.your-domain.com. This will make your emails work from Namecheap.

Take into account that this is a general solution, your email provider may have special MX records so you should get in touch with them so they can help you out.

Not the answer you're looking for? Browse other questions tagged or ask your own question.