Skip to content

Create a Route 53 Hosted Zone

ServerlessInbox needs a Route 53 hosted zone for your domain before you deploy — the CloudFormation stack writes DNS records into it for mail routing, domain verification, and certificate validation.

Create the zone in the same AWS account you will deploy into. The stack’s hosted zone parameter is a console dropdown listing only that account’s hosted zones, so a zone held in another account cannot be selected.

  1. Open the AWS console and go to Route 53 → Hosted zones.
  2. Choose Create hosted zone.
  3. Enter your domain name (for example, example.com).
  4. Leave the type as Public hosted zone.
  5. Choose Create hosted zone.

Note the Hosted zone ID shown on the zone’s detail page — you’ll need it for the hostedZoneId parameter when you install ServerlessInbox Standard.

  • If your domain is registered directly with Route 53, the hosted zone is created automatically when you register the domain, and its nameservers are already in place. You don’t need to do anything further.
  • If your domain is registered with a different registrar, Route 53 generates a new set of NS (nameserver) records for the hosted zone you just created. Copy those NS records from the hosted zone’s detail page and update your domain’s nameserver settings at your registrar to point to them. This step is required for DNS validation and mail routing to work — without it, the hosted zone exists but your domain won’t actually use it.

Whether the zone is new or one you already had, confirm the delegation before you launch the stack. Note the four NS nameservers on the hosted zone’s detail page, then look your domain up from the public internet:

Terminal window
dig NS example.com +short

Any online DNS lookup tool does the same job. The answer must be those four nameservers. If it is a different set, or empty, your domain is not using this hosted zone yet — correct the nameservers at your registrar and check again. Nameserver changes can take a while to propagate.

The hosted zone must exist in the AWS account you deploy into, and the delegation above must be live, before you launch the ServerlessInbox stack. Without it, certificate validation during the deployment has nowhere to read from and the stack cannot finish.