techinfoBiT
  • News
  • Startups
  • Tech
    • Internet
    • Security
  • WebMaster
    • All
    • GEO
    • SEO
    • Server & Hosting
    • Tools
    • WordPress
    'Sorry, This File Type Is Not Permitted for Security Reasons' How To Fix This Error in WordPress Website Development-techinfoBiT

    ‘Sorry, This File Type Is Not Permitted for Security Reasons’ How To Fix This Error in WordPress

    What is DMARC Record in DNS and Why It is Important For Email Security-techinfoBiT

    What is DMARC Record in DNS and Why It is Important For Email Security?

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server - techinfoBiT-SHA-256,Ubuntu Server, Server Solution, Linux Hashing, File Integrity, Cryptographic Hash, sha256sum, Hash Generation

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024 - techinfoBiT

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024

    What is Google Analytics 4 and How to Setup GA4 for Websites - techinfoBiT

    What is Google Analytics 4 and How to Setup GA4 for Websites?

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily

  • Science Space
  • Gadgets
    • Laptop & PCs
    • Mobile Phones
    • Wearables
  • More
    • How-To Guides
    • Reviews
    • Telecom
    • Applications
    • Press Release
No Result
View All Result
Services
techinfoBiT
  • News
  • Startups
  • Tech
    • Internet
    • Security
  • WebMaster
    • All
    • GEO
    • SEO
    • Server & Hosting
    • Tools
    • WordPress
    'Sorry, This File Type Is Not Permitted for Security Reasons' How To Fix This Error in WordPress Website Development-techinfoBiT

    ‘Sorry, This File Type Is Not Permitted for Security Reasons’ How To Fix This Error in WordPress

    What is DMARC Record in DNS and Why It is Important For Email Security-techinfoBiT

    What is DMARC Record in DNS and Why It is Important For Email Security?

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server - techinfoBiT-SHA-256,Ubuntu Server, Server Solution, Linux Hashing, File Integrity, Cryptographic Hash, sha256sum, Hash Generation

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024 - techinfoBiT

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024

    What is Google Analytics 4 and How to Setup GA4 for Websites - techinfoBiT

    What is Google Analytics 4 and How to Setup GA4 for Websites?

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily

  • Science Space
  • Gadgets
    • Laptop & PCs
    • Mobile Phones
    • Wearables
  • More
    • How-To Guides
    • Reviews
    • Telecom
    • Applications
    • Press Release
No Result
View All Result
techinfoBiT

How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily

Nishant Kumar by Nishant Kumar
January 17, 2024
Reading Time: 4 mins read
Share on FacebookShare on Twitter > XShare via WhatsAppShare on LinkedIn

Email is the most important medium of communication for all types of businesses; business communications can not be imagined without email services so it has to be secure and maximum possible reliability. There are a couple of DNS changes like DKIM, DMARC, and SPF for business emails which help you make email communications secure and these configurations ultimately prevent your business email from email spam, phishing, spoofing etc.

If you have ever configured any business email then you might be also familiar with the SPF DNS record. SPF (Sender Policy Framework) is crucial to ensure the legitimacy of your emails. It’s basically an email authentication method and it helps the server authenticate that the emails appearing to come from the specific domain are sent from a server authorised by the domain owner, NOT from anywhere else like phishing or spoofing sites. We get the SPF record from your email service provider and it can be added as TXT-type records to DNS. SPF also ensures that your messages are delivered correctly.

You might also like

How to Install Let's Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Website - techinfoBiT

How to Install Let’s Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Websites

June 3, 2026
How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS-techinfoBiT

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS

June 2, 2026

How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

Adding one SPF record is straightforward, you can go to your DNS setting and add the SPF as a new TXT-type record, and it will start reflecting after a couple of minutes or 24 hours in some scenarios. But, in case you are using different services for SMTP and email communications then you might need to add SPF for both service providers to avoid your email being flagged as spam.

For example, you are using Google’s GSuite of Zoho Business email and want to use Mailgun to send email from your website or application; in this case, you need to enter the SPF records for both service providers.

How To Use Multiple SPF Records In A Domain?

You may find a couple of ways to use the multiple SPF records for your domain, one of them is merging the SPF Records.

Now, let’s explore the step-by-step process of merging multiple SPF records to create a unified and efficient email authentication process. You need to be very careful while making changes to your DNS, you may also consider exporting the setting before making any changes to DNS to be on the safer side. While merging the SPF records, avoid duplication and ensure that you retain all necessary information. Pay close attention to include mechanisms such as ‘include,’ ‘a,’ and ‘mx’ that point to the authorized mail servers.

I am going to merge the SPF records of Google’s GSuite and Mailgun. The SPF records of Google’s GSuite is

v=spf1 include:_spf.google.com ~all

and the SPF record for Mailgun is

v=spf1 include:mailgun.org ~all

Now, before going further and merging them let’s take a look at some key pointers metadata or descriptions of the SPF records.

  • v – SPF record starts with v=spf1, it identifies the record as the first version of SPF
  • a – Indicates the address of your domain in an IP number.
  • include – It tells the DNS to include this particular domain in the SPF setup of your domain. It allows emails to be authenticated through the same IPs allowed in the included domain.
  • all – This mechanism defines how an email should be treated. Available qualifiers are as follows:
    • +all – Is the default prefix so that it can be bypassed
    • ?all – Adding this rule acts as if there’s no SPF, so it’s NOT recommended
    • -all – If the email doesn’t comply with the set rules, it will be rejected and not sent
    • ~all – If the email doesn’t comply with the set rules, it will be sent but tagged as SoftFail.

Note: If one of the records (or both) consists of an “mx” mechanism, it should also be included once.

Now, let’s merge the SPF records of Google G-Suite and Mailgun; with the above-mentioned records the final merged SPF records for G-Suite and Mailgun will be,

v=spf1 include:_spf.google.com include:mailgun.org ~all

You can also merge more than two SPF records; In fact, you can merge up to 10 SPF records as long as you only have 1 declaration at the start and 1 enforcement rule at the end of the SPF. Just be careful about the following points:

  • You must format all SPF records in a single line.
  • It can have a maximum of 10 domain lookups (i.e. include)
  • The record must be less than 255 characters long. For example:
v=spf1 include:zoho.in include:spf.smtp.com include:mailgun.org ~all

How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

Tags: “mx” mechanismBusiness EmailDKIMDMARCDNS ConfigurationGoogle G SuiteHow-to ArticleMailgunSender Policy FrameworkSPFSPF record for MailgunSPF records of Google G Suite
ShareTweetSendShare
Previous Post

The Ultimate Guide To Choosing the Right Career for You

Next Post

What is Google Analytics 4 and How to Setup GA4 for Websites?

Nishant Kumar

Nishant Kumar

Nishant is a passionate tech blogger and has been writing about technology since 2007. His insatiable love for gadgets has made him closely follow the advancements & innovations our society has made in terms of technology since a long while now. Nishant is a highly sought after reviewer with many manufacturers requesting his opinions about their products. He covers Mobile Phones, Gadgets, Tools and all kind of tech products to give consumers Genuine Reviews, Buying Guides and reliable news.

Related Articles

How to Install Let's Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Website - techinfoBiT

How to Install Let’s Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Websites

by Nishant Kumar
June 3, 2026
0

One of the final and most important steps when launching a website or web application is enabling HTTPS. Whether you're hosting a WordPress website, a Spring Boot application, a Laravel...

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS-techinfoBiT

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS

by Nishant Kumar
June 2, 2026
0

Deploying a Spring Boot application on a VPS involves more than simply uploading application files to a server. A production deployment typically includes a Java runtime, a PostgreSQL database, a...

how to type in Hindi 2026, Hindi typing Windows 11, Google Input Tools alternative, type in Indian languages, Hindi phonetic keyboard Windows, Microsoft Indic Language Input Tool, Gboard Hindi typing-techinfoBiT

How to Type in Hindi and Indian Languages on Any Device in 2026

by techinfoBiT
May 31, 2026
0

If you have been searching for the Google IME offline installer lately, you already know the bad news. Google quietly discontinued the Windows installer years ago. The download links are...

SEO Is Not Dead, But It Is No Longer Enough- The Rise of GEO and AI Visibility-techinfoBiT

SEO Is Not Dead, But It Is No Longer Enough: The Rise of GEO and AI Visibility

by Nishant Kumar
May 28, 2026
0

Picture this. A potential customer pulls out their phone and asks ChatGPT which cybersecurity firm in India they should trust for enterprise protection. ChatGPT thinks for two seconds, assembles an...

Load More
Next Post
What is Google Analytics 4 and How to Setup GA4 for Websites - techinfoBiT

What is Google Analytics 4 and How to Setup GA4 for Websites?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.

techinfoBiT | Startup & Tech News, Reviews | WebMaster, How-To Guides-Tech Blog-Startup Blog India

techinfoBiT is your go-to source for the latest startup & tech news, technology reviews; WebMaster, SEO tips and how-to guides to help you stay updated and navigate the digital world know more

  • About
  • Contacts
  • Disclaimer
  • Privacy Policy

© 2012-2025 techinfoBiT | All Rights Reserved

No Result
View All Result
  • News
  • Startups
  • Tech
  • WebMaster
  • Gadgets
  • How-To Guides
  • Science Space
  • Services

© 2012-2025 techinfoBiT | All Rights Reserved