Goal
The original plan was to consider migrating old email from Hostinger into Microsoft 365. After reviewing the situation, I realized there was no mail that needed to be migrated. The real goal was simpler:
@lokestech.com mail to Microsoft 365 and stop using Hostinger as the active mail provider.
Hostinger remains the DNS host for the domain, but Microsoft 365 becomes the mail provider.
Starting State
| Item | Starting value |
|---|---|
| Domain | lokestech.com |
| DNS provider | Hostinger |
| Old mail provider | Hostinger Email |
| New mail provider | Microsoft 365 / Exchange Online |
| Main user mailbox | jason.loewecke@lokestech.com |
| Admin role mailbox | admin@lokestech.com |
DNS Cutover
Microsoft 365 provided the required DNS records for Exchange Online mail flow and authentication. These were added in Hostinger under the domain DNS / nameserver settings.
MX Record
The MX record is the actual mail-routing switch. Hostinger MX records were removed and Microsoft 365 was added.
Type: MX
Host: @
Mail Server: lokestech-com.mail.protection.outlook.com
Priority: 0
TTL: 3600
Autodiscover CNAME
The old Hostinger autodiscover/autoconfig values were removed. Microsoft 365 autodiscover was added.
Type: CNAME
Host: autodiscover
Points to: autodiscover.outlook.com
TTL: 3600
SPF TXT Record
The existing SPF record was edited so that Microsoft 365 is the allowed sender for the domain.
Type: TXT
Host: @
Value: v=spf1 include:spf.protection.outlook.com -all
TTL: 3600
DKIM CNAME Records
Microsoft 365 provided two DKIM selector records. These were added as CNAME records in Hostinger.
Type: CNAME
Host: selector1._domainkey
Points to: selector1-lokestech-com._domainkey.lokestechlab.d-v1.dkim.mail.microsoft
TTL: 3600
Type: CNAME
Host: selector2._domainkey
Points to: selector2-lokestech-com._domainkey.lokestechlab.d-v1.dkim.mail.microsoft
TTL: 3600
Old Hostinger Mail DNS Cleanup
After the Microsoft records were added, old Hostinger mail-related DNS records were removed.
- Removed old Hostinger MX records.
- Removed old Hostinger DKIM records such as
hostingermail-a._domainkey, plus B and C records. - Removed old Hostinger
autoconfigCNAME record pointing toautoconfig.mail.hostinger.com.
Related Defender for Business Setup
During the same session, Microsoft Defender for Business started walking through its setup wizard. The choices were kept conservative.
- Security admin: Jason Admin
- Email notifications:
admin@lokestech.com - Device onboarding method: Local Script
- Onboarding package: downloaded, but not run
- Security settings: left for Intune / later management
Validation
Inbound Test
A test email was sent from Gmail to admin@lokestech.com.
It successfully arrived in the Microsoft 365 shared mailbox.
Outbound Test
A test email was sent from Outlook Online as admin@lokestech.com to Gmail.
Gmail received it successfully.
DNS Lookup Tests
DKIM CNAME records were checked with nslookup. Public DNS resolved correctly first,
then local DNS was checked after Pi-hole was brought back online.
nslookup -type=cname selector1._domainkey.lokestech.com
nslookup -type=cname selector2._domainkey.lokestech.com
Final Authentication Result
Gmail's message details showed:
- SPF: PASS
- DKIM: PASS
- DMARC: PASS
Outlook Client Plan
The old standalone admin@lokestech.com account should be removed from the Outlook client.
The better long-term setup is:
| Account | Purpose |
|---|---|
jason.loewecke@lokestech.com |
Main Microsoft 365 / professional mailbox |
admin@lokestech.com |
Shared mailbox accessed by Jason |
jloewecke@gmail.com |
Personal account / recovery / legacy use |
Lessons Learned
- Mail migration is not always required. Sometimes the right move is just a clean mail-flow cutover.
- MX is the big switch. Once Hostinger MX records were removed, new mail routed to Microsoft 365.
- Shared mailboxes are the right choice for role addresses like
admin@. - Send As is cleaner than Send on Behalf for a role mailbox.
- Old provider DNS records should be cleaned up after the cutover.
- SPF, DKIM, and DMARC should be validated with an external recipient like Gmail.
- Local DNS failures can make cloud DNS troubleshooting look broken. In this case, Pi-hole was down.
- Microsoft portals sometimes throw diagnostic popups that are more useful to Microsoft support than to the admin doing the work.
Next Steps
- Finish cleaning up Outlook desktop profile/account order.
- Keep
jason.loewecke@lokestech.comas the primary professional Outlook account. - Use
admin@lokestech.comas a shared mailbox only. - Plan MSI laptop Entra registration / Intune enrollment intentionally.
- Document the Defender for Business setup separately.