
This is the host that runs your mail transfer agent (for example Postfix). The MX record defines your mail exchanger. The A record should point to the IP address of your EC2 instance that will host your mail server. In the first case, you need to create an A record and an MX record in the Hosted Zone of your domain. use an existing mail server that has been pre-configured on another domain and is already up and running.Edit your hosted zone to set up NS routingĪt this point, there are two possible scenarios. Sign back into your account at your registrar and change your domain’s default name servers to your new name servers which you acquired via AWS Route53 in Step 2 above.

Whatever the case with your registrar’s default ns servers, in most cases you will want to exchange them. This is a common practice with services such as domain parking, where you aren’t yet hosting a website but merely keep the domain in your account. Your registrar might have already assigned their own name servers to your domain. Assign your domain’s name servers to your registrar’s record of your domain Make a note of their host names you don’t need to know their IPs.įor more on DNS configuration see this post: A quick guide to DNS configuration using AWS Route 53 (or any other DNS service) 3. This will reserve four of Amazon’s name servers for the domain of your choice (the minimum required are two but you should use all four). Sign in to the AWS Management console and navigate to the Route 53 service at:Ĭreate a new Public Hosted Zone using the domain name from step 1. This is where using a respectable, trustworthy registrar pays off: they will go the extra mile to alert you of any bumps in the road and protect you from potentially disastrous events such as 3rd party’s attempts at domain hijacking.Īfter registering your domain name you can configure the routing. If you don’t want to disclose so much personal information, you can buy a domain privacy service in most jurisdictions, but you still have to maintain your account with your registrar in good standing or you risk losing your domain.

It is now your responsibility to keep your contact details with this company current at all times. The company that performs this service is now officially your domain’s registrar. Register your domain name with a trustworthy registrar. Running a mail server on AWS EC2 is not quite as easy as it sounds. Related: How to install a web server on AWS EC2 and set up a website from scratch on a domain of your choice. Here is how to get started with an open-source mail server on AWS EC2.

When running your own mail server you have complete control over its performance and reliability.
