Email

How to set up SPF on o2switch

In short. SPF (the list of servers allowed to send email with your domain) tells receiving mailboxes which senders are genuine. If it is wrong, your messages can land in spam or be refused. At o2switch you set it in a dedicated tool, not by hand in the DNS settings. You can do it yourself, or ask whoever manages your domain if that is a provider or agency. It takes a few minutes of setup; allow some time before it works everywhere.

At o2switch, SPF is set in cPanel with the « Authentification » tool (Authentication, in the email section), never by hand in the DNS zone editor. SPF and DKIM are enabled by default there. To add a service, click « Gérer » (Manage), then « Personnaliser » (Customize), and add its domain in the INCLUDE part. For mail sent from o2switch, the only valid value according to o2switch is include:spf.jabatus.fr.

SPF lists the servers allowed to send email with your domain. A wrong or incomplete SPF sends your messages to spam.

Last verified: November 18, 2026, against the official o2switch documentation and the cPanel documentation. o2switch's interface and help exist in French only: the French labels are quoted below, with an English translation in parentheses.

Before you start

  • Your DNS zone must be at o2switch. If your domain uses other name servers (Cloudflare, your registrar), the cPanel tool publishes nothing: make the change at that provider (see below).
  • List your senders: o2switch mailboxes, your website (forms, WooCommerce shop), a newsletter tool (Brevo, Mailjet), Gmail or Microsoft 365 if you send from there with your domain. Each service gives the domain to include in its help.

Step 1: open the authentication tool

  1. Log in to your o2switch cPanel.
  2. In the email section, open « Authentification » (Authentication). In cPanel's own documentation this page is called "Email Deliverability", so the name may differ slightly with your cPanel version.
  3. Find your domain in the list and click « Gérer » (Manage).

The tool shows the DKIM and SPF state of each domain. DKIM has no settings: it is either on or off. Leave it on.

Step 2: add a service to the SPF

  1. In the SPF block, click « Personnaliser » (Customize).
  2. In the INCLUDE part, add one +include entry per service, with the domain name only (no include: in front). For example:

    • spf.jabatus.fr, if it is not already there (mail sent from o2switch);
    • the domain given by your newsletter tool or by Google Workspace (_spf.google.com; see our SPF guide for Google Workspace).
  3. Leave « Toute la liste (ALL) » (The whole list (ALL)) unticked for now (see below).
  4. Install the custom record with the button at the bottom of the form ("Install a Customized SPF Record" in cPanel's English documentation). The tool updates the record in your zone.

o2switch warns under the heading « Attention aux SPF générés par des IA » (Beware of AI-generated SPF records) that AI tools often suggest wrong values, and that any value other than spf.jabatus.fr for its servers can stop your mail from being sent properly. If in doubt, contact their support before changing anything.

Why not use the DNS zone editor

o2switch's help for the « Éditeur de Zone DNS » (DNS Zone Editor) says SPF records must not be edited there: your changes are overwritten at the next zone update by the authentication tool. A change made there can seem to work for a few days, then vanish.

If your DNS zone is at Cloudflare or elsewhere

The authentication tool cannot publish at another provider. Create a single TXT record on the domain yourself, containing include:spf.jabatus.fr and your other services, for example:

v=spf1 include:spf.jabatus.fr include:_spf.google.com ~all

Replace _spf.google.com with your real services, or remove it.

Step 3: check it works

After a few minutes to a few hours:

nslookup -type=TXT yourdomain.com

Exactly one line must start with v=spf1 and contain spf.jabatus.fr. Our free SPF checker also counts the DNS lookups.

From ~all to -all

The « Toute la liste (ALL) » box makes SPF stricter. In cPanel's documentation the matching option is "Exclude All Other Hosts ("-all" Entry)": servers you have not declared fail, which means the record ends in -all instead of ~all.

  • Keep ~all (box unticked) until you are sure every sender is declared.
  • Tick the box once your DMARC reports have shown for several weeks that every legitimate sender passes SPF. To set up those reports, follow our guide on setting up DMARC on o2switch.

Known pitfalls

  • Two SPF records: a v=spf1 TXT added by hand in the zone editor on top of the tool's one. The standard allows only one: with two, SPF fails with an error.
  • The 10-lookup limit: every included service costs at least one DNS lookup, often several. Past 10, SPF fails. Remove tools you no longer use.
  • A "magic" SPF found online: +a +mx +ip4:… copied from another site does not necessarily match your servers. Stick to spf.jabatus.fr and your real services.
  • Ticking "Toute la liste (ALL)" too early: a forgotten newsletter or invoicing tool would see its mail rejected.

Frequently asked questions

Do I need to enable DKIM at o2switch?

o2switch says SPF and DKIM are enabled by default on your hosting. In the authentication tool DKIM can only be turned on or off. For a DKIM key supplied by an external provider, o2switch says to use the DNS zone editor.

My o2switch emails go to spam even though SPF is right

Check DKIM and DMARC too, then the content and reputation of what you send. A domain without DMARC is treated less favorably by Gmail and Outlook.com.

Verify it's fixed. AttackScout reads your SPF record from the internet, counts DNS lookups, spots duplicates and tells you whether your domain is ready for DMARC. Free, no account needed. Verify it's fixed

Technical details

Exact configuration. A single TXT record at the root of the domain, starting with v=spf1 and ending with an all mechanism:

v=spf1 include:<service-that-sends-your-email> ~all

Why. SPF (RFC 7208) lists the servers allowed to send email for your domain. The receiving server reads this TXT record and counts at most 10 DNS lookups (include, a, mx, exists, redirect): beyond that the result is permerror and SPF protects nothing. Two SPF records also give permerror. ~all flags without rejecting; -all makes receivers reject anything not listed.

To check it yourself. Exactly one line must start with v=spf1:

dig +short TXT your-domain.com

Reference: https://www.rfc-editor.org/rfc/rfc7208

Sources

Accessed November 18, 2026. The o2switch pages are in French.