Configuring an SPF record for a subdomain on Namecheap to enable verification with Mailgun

Configuring an SPF record for a subdomain on Namecheap to enable verification with Mailgun

Having trouble verifying your account? Here are some tips:

  • When adding an SPF TXT record in Namecheap for a subdomain (e.g., subdomain.example.com), use only the subdomain part—enter "sub" as the host.
cname and txt records
  • To set up Mailgun, you need to create a TXT record to verify spf. Use a different subdomain (like mgblog) to avoid conflicts—don't create both CNAME and TXT records with same "Host".
    Make sure you do not create both a CNAME and a TXT record with the same subdomain in namecheap. For example, if your blog is at blog.example.com, you should have configured a CNAME record with Host: "blog" and Value: "example.com".
    Then to comply with mailgun you need to create a TXT record to verify spf. Choose a different "Host" name, so you will have a CNAME record with ‘blog’ (@ in the image) and a TXT record with ‘mgblog’, despite what mailgun says to you.
TXT record spf value

Links:

https://stackoverflow.com/a/75417105

https://juicytool.wordpress.com/2016/07/08/namecheap-advanced-dns-settings-for-verifying-a-subdomain-with-mailgun-spf-domainkeys/