Set Up Microsoft 365 Email with AWS Route 53 and Lightsail
Question details
Set up Microsoft 365 email for a custom domain without interrupting a website hosted on AWS Lightsail.

- Product
- Microsoft 365 email, Amazon Route 53, and Amazon Lightsail
- Device & OS
- not provided
- Scenario
- A custom domain uses AWS DNS and points to a Lightsail website while Microsoft 365 email is being configured.
- Observed behavior
- Changing name servers can interrupt the website, and some email messages are returned as undeliverable.
Check the domain's name servers at your registrar and identify the authoritative DNS provider. In the active DNS zone, note the existing website records and obtain the domain-specific email records from the Microsoft 365 admin center.
Configure Microsoft 365 email records in the active Route 53 zone
Use this approach when Route 53 is authoritative for the domain and you want to keep the Lightsail website online.
Open your domain registrar's DNS or name server settings and compare the listed name servers with those in Amazon Route 53 > Hosted zones > your domain. If they do not match, make changes at the authoritative DNS provider instead.
In the Microsoft 365 admin center, open Settings > Domains, select your domain, and follow the setup or DNS records instructions. Copy the domain-specific verification, MX, and other required values.
In Route 53 > Hosted zones > your domain, choose Create record and enter the required Microsoft 365 records. For mail delivery, use the MX value and priority shown in the admin center; review any existing MX records so mail is routed to the intended provider.
In the same hosted zone, retain the existing A, AAAA, or CNAME records that direct the domain and website hostnames to Lightsail. Do not change name servers merely to add Microsoft 365 email records.
Return to Settings > Domains in the Microsoft 365 admin center to check the DNS setup. After the changes propagate, send a test message to the affected mailbox and send another from it to an external address.

Investigate messages returned as undeliverable
Use the complete delivery error to identify the next check if mail still fails after DNS propagation.
Work with Office files in WPS Office
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easy to move existing files, although it does not fix Microsoft 365 email or DNS settings.

Frequently Asked Questions
Do I need to change my name servers to use Microsoft 365 email?
Not necessarily. If Route 53 is authoritative, you can add the records shown in Microsoft 365 admin center > Settings > Domains to your Route 53 hosted zone while keeping your existing name servers.
How can I keep my Lightsail website working?
Keep the existing A, AAAA, or CNAME records that point your website hostnames to Lightsail. Add the Microsoft 365 email records without removing those website records.
How long do Microsoft 365 DNS changes take?
DNS changes can take up to 72 hours to propagate. Check the domain status under Settings > Domains in the Microsoft 365 admin center and retest mail delivery.
What should I check if messages are still returned?
Review the complete non-delivery report, verify the recipient's mailbox and license in Users > Active users, and compare the active MX record with the value in Settings > Domains.




