Email

Set up SPF, DKIM and DMARC at o2switch

In short. At o2switch, SPF and DKIM are managed in cPanel's Authentication tool and are on by default, while DMARC is added in the DNS Zone Editor. Check that the first two are active, then add DMARC, and tighten the policy only after reading the reports.

SPF lists the servers allowed to send for your domain, DKIM signs each message, and DMARC tells receivers what to do with mail that fails both. These steps require your DNS zone to be managed at o2switch; if your domain points to Cloudflare, for example, add the records there.

Last verified: November 26, 2026, against the official documentation of o2switch and cPanel (checked November 13, 2026). o2switch's help is in French; the English labels below come from cPanel's documentation.

1. SPF and DKIM in the Authentication tool

In cPanel, open Authentication in the email section (it may appear as "Email Deliverability" depending on the cPanel version) and click Manage next to your domain. DKIM is active or not, and is not configurable: leave it active. For SPF, the only valid value for o2switch servers according to o2switch is include:spf.jabatus.fr. To add a service, click Customize, and in the INCLUDE part add one +include entry per service with the domain only, for example your newsletter tool's domain or _spf.google.com. Leave All entries (ALL) unchecked for now: checking it makes the record end with -all instead of ~all. o2switch says not to edit SPF records in the DNS Zone Editor, because the Authentication tool would overwrite them.

If your DNS zone is elsewhere

The Authentication tool cannot publish at another provider. Create there a single TXT record on the domain, for example:

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

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

2. DMARC in the DNS Zone Editor

In cPanel, open Zone Editor (Domains section), click Manage next to your domain, click the small arrow on the right of the Add Record button and choose DMARC. Clicking the button's text creates an A record instead. Fill in: name _dmarc.yourdomain.com. (full name with a trailing dot), Policy None, and the aggregate reports address (for example [email protected]). Leave the other fields empty or at their defaults, then Save Record. The result is equivalent to:

_dmarc.yourdomain.com.  TXT  "v=DMARC1; p=none; rua=mailto:[email protected]"

DMARC is a TXT record: you can also choose TXT and paste that value. Use only one method.

Then tighten DMARC step by step

Start with p=none and read the reports for one to two weeks. Once every legitimate sender passes, move to p=quarantine, then to p=reject after several clean weeks. Never publish quarantine or reject straight away: one forgotten sender, such as an invoicing tool, would have its mail sent to spam or refused. Google recommends the same staged rollout.

Common mistakes

  • Two SPF records on the same domain: SPF fails with an error. Merge them into one.
  • Two DMARC records on _dmarc: receivers ignore both.
  • More than 10 DNS lookups in SPF (each include: costs at least one; RFC 7208): SPF fails.
  • Typing the full name in the host field: _dmarc.yourdomain.com can become _dmarc.yourdomain.com.yourdomain.com. Enter only _dmarc, and check the result in the list.
  • Forgetting mailto: in the rua address.
  • Forgetting other senders (newsletter, invoicing, online shop): each must pass SPF or sign with DKIM for your domain.

Check that it works

Wait for the change to be visible (minutes to hours, sometimes up to 48 hours), then:

nslookup -type=TXT yourdomain.com
nslookup -type=TXT _dmarc.yourdomain.com

You should see one line starting with v=spf1 and one line starting with v=DMARC1. Our free tools read both and the DKIM key: use the SPF, DKIM and DMARC checkers linked above. For a full test, send an email to a Gmail address, open it, choose Show original: SPF, DKIM and DMARC should read PASS.

Free tool. SPF checker · DKIM checker · DMARC checker

Check your domain for free. AttackScout reads your public SPF, DKIM and DMARC records and tells you what to change. Run the free check

Frequently asked questions

Do I need all three at o2switch?

Gmail and Microsoft require SPF, DKIM and DMARC from senders of more than 5,000 messages a day, and a complete setup helps at every volume. DMARC only passes when SPF or DKIM passes with your own domain, so set SPF and DKIM first.

How long before it works?

Providers announce from a few minutes to 48 hours for DNS changes to be visible everywhere. Test after a short wait.

Should I start with p=reject?

No. Start with p=none, read the reports, then tighten.

Sources

Accessed on 11/26/2026.