Skip to main content
All CollectionsSetup
SPF, DMARC and DKIM: Namecheap & Microsoft/Office 365 sending accounts
SPF, DMARC and DKIM: Namecheap & Microsoft/Office 365 sending accounts

Learn how to add MX, SPF, DKIM and DMARC records to your Namecheap domain, to validate the emails sent by your Microsoft/Office 365 accounts

Updated over 4 months ago

If you plan on using Microsoft 365 for your email sending, you need to sign up for a workspace first. Once you have signed up for a plan, you can continue and add your Namecheap domain to Microsoft Workspace.

Adding Namecheap domain to Microsoft 365 Workspace

The first step on setting up SPF, DMARC and DKIM is to add Namecheap domain to Microsoft 365 Workspace. Watch the detailed video by clicking the link here.

Here are the steps on how to add your Namecheap domain.

  1. Log in to your Microsoft 365 Admin account.

  2. From Home Page, use the search bar and type 'Get your custom domain set up.'

  3. On Domains Wizard, open up where you will be asked to input the domain name and click Use this domain.

  4. Verify your domain.

  5. Select 'Add a TXT record to the domain's DNS records' and click Continue.

  6. Login to your Namecheap account. Navigate to your Domains list.

  7. Locate your domain and click Manage.

  8. Navigate to the 'Advanced DNS tab.'

  9. Go back to your Microsoft and copy the TXT record into a new Namecheap TXT type record.

  10. Once you save the record in Namecheap, go back to Microsoft and click Verify.


Add DNS Records

To add these records for your domain, go to your DNS in Namecheap.

You will need to copy each of these records (MX, CNAME, SPF) from Microsoft into a new Namecheap DNS record. Click on each one of them to append the view and get the data.

Adding MX Record

To add your MX Record, here are the steps to do this.

  1. On your Namecheap DNS, scroll down to Mail Settings.

  2. Click Email Forwarding and choose Custom MX.

  3. Copy the details from the Microsoft page.

  4. Click Add Record.

Adding CNAME Record

After adding the MX Record, the next step is to add CNAME Record, here are the steps to do this.

  1. Copy the details from the Microsoft page.

  2. On your Namecheap DNS, click Add record to create a new CNAME type record.

  3. Paste the copied text and click Save all changes.

Adding SPF Record

To add your SPF Record, here are the steps to add your SPF Record.

  1. On your Namecheap, create a new record by copying the date from Microsoft.

  2. Paste the copied details in the new DNS record and click Save all changes.

  3. On your Microsoft 365, click Continue.

  4. Once you proceed to add the DKIM and DMARC record manually, click Done.


Adding DKIM Record

The DKIM Record helps to prevent email spoofing and improves email deliverability.

Here are the steps for adding DKIM Record.

  1. Click on the domain to configure DKIM on the DKIM page.

  2. Slide the toggle to enable. A pop-up window will appear and click 'Create DKIM keys.'

  3. Copy the CNAME-type records into your Namecheap domain and go back to the same page to enable DKIM.

  4. Publish both of the copied CNAME records to your Namecheap DNS.

  5. On your Microsoft page, toggle the switch to Enable.

Note: If you see your CNAME record doesn't exist error, it might be due to the following reasons such as:

  1. Synchronization with the DNS server, which might take a few seconds to hours. If the problem persists, repeat the signs again.

  2. Check for any copy-paste errors, like additional space or tabs, etc..


Adding DMARC Record

DMARC Record is a TXT record that you'll need to input into Namecheap DNS. This is considered the last important action. Therefore, here are the steps on how to add DMARC record.

  1. Sign in to your Namecheap account.

  2. Locate the domain you want to set up the records and select Manage.

  3. Click the 'Advanced DNS' tab and select 'Add new record.'

  4. Copy the following details.

    Type:

    TXT

    Host:

    _dmarc

    Value:

    v=DMARC1;p=none;sp=none;pct=100;rua=mailto:[email protected];ruf=mailto:[email protected];ri=86400;aspf=s;adkim=s;fo=1

  5. Set the TTL to the lowest value.

  6. Click Save all changes.

The rug tag is optional for any domain/email provider, so if you don't want to receive DMARC reports, you can remove the rug tag from the DMARC value.

If you are using rua tag in the DMARC value, replace [email protected] with your email address.

Did this answer your question?