Send & Receive Issues

Set Up Microsoft 365 Email with AWS Route 53 and Lightsail

Huma Ashraf ChHuma Ashraf Ch Nov 25, 2026 869 views

Question details

Set up Microsoft 365 email for a custom domain without interrupting a website hosted on AWS Lightsail.

Set Up Microsoft 365 Email with AWS Route 53 and 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.
Before you start

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.

Solution 1Recommended

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.

1
Check name server delegation

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.

2
Get Microsoft 365 DNS values

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.

3
Add the email records

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.

4
Keep website records intact

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.

5
Verify and test

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.

Configure Microsoft 365 email records in the active Route 53 zone
Allow time for DNS changes: DNS changes can take up to 72 hours to propagate. If an SPF TXT record already exists, incorporate the Microsoft 365 SPF include into that record rather than creating a second SPF record for the same hostname.
Free Microsoft Office alternative

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.

Free, lightweight tools with a familiar interfaceCompatible with Microsoft Office formats, including DOCX, XLSX, and PPTXOpen existing Office files without changing your email DNS setup
microsoft office alternative - wps office

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.