×
No articles yet
No articles yet

How to merge SPF records

SPF is a DNS TXT record that tells receiving mail servers which services are allowed to send email for your domain. If you use more than one email service, you may need to merge SPF values into one record.

A domain should normally have only one SPF record. If your DNS has multiple TXT records that start with v=spf1, SPF verification can fail or behave unpredictably.

When you need to merge SPF records

  • You already have an SPF record for another email provider.

  • Mailcamp shows an SPF TXT record when you authenticate a sending domain.

  • Your DNS provider already has a TXT record that starts with v=spf1.

  • You need to authorize Mailcamp and another service to send email from the same domain.

Find the SPF value in Mailcamp

  • In Mailcamp, go to Sending domains.

  • Open the sending domain you are authenticating.

  • Look for the SPF TXT record in the DNS record table.

  • Copy the SPF mechanism Mailcamp provides, such as the include value or other value shown in the record.

  • Keep the Mailcamp page open while you update your DNS provider.

Merge the SPF record

  • Open your DNS provider and find the existing TXT record that starts with v=spf1.

  • Edit the existing SPF record instead of creating a new SPF record.

  • Add the Mailcamp SPF mechanism before the ending mechanism.

  • Keep only one beginning value: v=spf1.

  • Keep only one ending mechanism, such as ~all or -all.

  • Save the updated TXT record.

Example

  • Existing SPF record: v=spf1 include:example-provider.com ~all

  • Mailcamp SPF value: include:mailcamp.io

  • Merged SPF record: v=spf1 include:example-provider.com include:mailcamp.io ~all

The exact value may be different in your Mailcamp account. Always use the SPF value shown on your sending domain details page.

What not to do

  • Do not create two separate SPF records for the same domain.

  • Do not copy the full Mailcamp SPF record into the middle of another SPF record.

  • Do not leave two ending mechanisms in the same record, such as ~all -all.

  • Do not delete SPF mechanisms for other services unless you are sure you no longer use them.

  • Do not update the wrong DNS zone or subdomain.

Verify the domain again

  • After saving the DNS change, wait for DNS propagation.

  • Return to the sending domain details page in Mailcamp.

  • Click Verify Now.

  • If SPF is still pending, review the host, TXT value, and whether duplicate SPF records still exist.

Troubleshooting

  • SPF still fails: check that your domain has only one TXT record starting with v=spf1.

  • The host looks duplicated: some DNS providers automatically append the domain name, so enter only the host portion required by that provider.

  • You are unsure what to remove: keep existing provider includes unless you know that service is no longer used.

  • The record is too long: review old or unused SPF mechanisms and remove only services you no longer use.

  • Verification is still pending after changes: wait for DNS propagation and click Verify Now again later.