Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

      July 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Domain Setup and Mail Flow Configuration in Microsoft 365

    Domain Setup and Mail Flow Configuration in Microsoft 365

    April 5, 2025

    Why Do We Need to Add and Verify a Domain in Microsoft 365 (M365)?

    1. Establishing Professional Identity
    • By adding your custom domain, you can create email addresses (e.g., you@yourcompany.com) that align with your business name. This adds professionalism and credibility to your communications.
    1. Personalizing Services
    • Verifying your domain allows you to customize services like Teams, SharePoint, and OneDrive to reflect your organization’s identity, making collaboration more consistent and branded.
    1. Email Delivery and Routing
    • To ensure emails sent to your custom domain are routed correctly to Microsoft 365, adding and verifying your domain is critical. This involves setting up DNS records like MX, SPF, and CNAME.
    1. Securing Your Domain
    • Verifying your domain protects it from unauthorized use. Only verified owners can manage the domain within Microsoft 365.

    Add a Domain

    1. Go to the Microsoft 365 admin center.
    2. Go to the Settings > Domains page.
    3. Select Add domain.

    Picture1

    1. Enter the name of the domain you want to add, then select Next.

    Picture2

    1. Choose how you want to verify that you own the domain.
    1. If your domain registrar uses Domain Connect, Microsoft will set up your records automatically by having you sign in to your registrar and confirm the connection to Microsoft 365.
    2. We can use a TXT record to verify your domain.
    1. Once domain is verified, we can go ahead and add other Exchange online record like TXT, MX and CNAME record.
    2. Please find the below recording for above mentioned steps.

    Add new domain

    Refer: Add a domain to Microsoft 365 – Microsoft 365 admin | Microsoft Learn

    Add and Verify the Exchange Online Record

    1. TXT Record Verification

    • Sign in to the Microsoft 365 Admin Center.
    • Navigate to Settings > Domains and select your domain.
    • Add a TXT record to your DNS hosting provider with the following details:
      • Host/Name: @
      • TXT Value: MS=msXXXXXXXX (unique ID provided in the admin center)
      • TTL: 3600 seconds (or default value)
    • Save the record and return to the Admin Center to click Verify.

    2. MX Record Verification

    • If TXT verification isn’t supported, use an MX record instead.
    • Add an MX record to your DNS hosting provider:
      • Host/Name: @
      • Points to Address: Domain-com.mail.protection.outlook.com
      • Priority: 0
      • TTL: 3600 seconds
    • Save the record and verify it in the Admin Center.

    3. CNAME Record Verification

    • Add a CNAME record for services like Autodiscover:
      • Alias/Name: Autodiscover
      • Target: Autodiscover.outlook.com
      • TTL: 3600 seconds
    • Save the record and ensure it’s correctly configured.

    Refer: Add DNS records to connect your domain – Microsoft 365 admin | Microsoft Learn

    Why Are TXT, MX, and CNAME Records Important for Exchange Online?

    TXT, MX, and CNAME records play crucial roles in ensuring that your domain is correctly configured for Exchange Online and that your email and services work smoothly. Here’s why they matter:

    TXT Records

    TXT records are used to verify domain ownership and secure email systems.

    • Domain Verification: When adding your custom domain to Microsoft 365, a TXT record proves that you own the domain.
    • Email Security: TXT records support SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting, and Conformance), which prevent email spoofing and improve deliverability by ensuring only authorized servers can send emails on behalf of your domain.

    MX (Mail Exchange) Records

    MX records are critical for routing emails to the correct servers.

    • They direct incoming emails for your domain to the Microsoft 365/Exchange Online mail servers.
    • A misconfigured MX record can cause email delivery issues, so having it set up correctly is essential.

    CNAME Records

    CNAME records are used for service configuration.

    • For Exchange Online, CNAME records like Autodiscover ensure that users can seamlessly connect their email clients (like Outlook) to Exchange Online without manually entering settings.
    • They simplify and automate the connection process for end-users.

    Together, these DNS records form the backbone of your domain’s email configuration, ensuring that everything from verification to email delivery and client connectivity operates effectively. Without these properly configured records, you might encounter issues like failed email delivery or difficulties in connecting to Exchange Online.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleSalesforce CRM: Redefining Business Integration in 2025
    Next Article Mastering AWS IaC with Pulumi and Python – Part 2

    Related Posts

    Development

    GPT-5 is Coming: Revolutionizing Software Testing

    July 22, 2025
    Development

    Win the Accessibility Game: Combining AI with Human Judgment

    July 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    ⚡ PERFATHON 2025 – The First-Ever Hackathon at Perficient 👩‍💻

    Development
    Black Mirror’s creator was so addicted to Balatro last year it’s made it into the Netflix show

    Black Mirror’s creator was so addicted to Balatro last year it’s made it into the Netflix show

    News & Updates

    CVE-2025-7075 – BlackVue Dashcam 590X HTTP Endpoint Unrestricted File Upload Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Looking for a cheap unlimited wireless plan? Google Fi has a deal for you

    News & Updates

    Highlights

    CVE-2024-51982 – HP Printer PJL Variable FORMLINES Denial of Service

    June 25, 2025

    CVE ID : CVE-2024-51982

    Published : June 25, 2025, 8:15 a.m. | 2 hours, 42 minutes ago

    Description : An unauthenticated attacker who can connect to TCP port 9100 can issue a Printer Job Language (PJL) command that will crash the target device. The device will reboot, after which the attacker can reissue the command to repeatedly crash the device. A malformed PJL variable FORMLINES is set to a non number value causing the target to crash.

    Severity: 7.5 | HIGH

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2025-53643 – AIOHTTP Request Smuggling Vulnerability

    July 15, 2025

    CVE-2025-4066 – ScriptAndTools Online-Travling-System Remote File Inclusion Vulnerability

    April 29, 2025

    CVE-2025-46723 – OpenVM AUIPC Instruction Overflow Vulnerability

    May 2, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.