Skip to main content

SPF Record

What is an SPF record and how can I add it?

Updated over a week ago

An SPF Record (Sender Policy Framework) defines in the DNS zone file of your domain which servers are authorized to send e-mails on behalf of your domain.
This helps protect you and your recipients from e-mail spoofing (forged sender addresses).

Standard Entry in DNS Zone File

The SPF record is entered as a TXT resource record in the DNS zone file.
A standard example looks like this:

"v=spf1 include:spf.mail.webland.ch -all"

This entry ensures that only the servers authorized by Webland are allowed to send e-mails for your domain. All other servers will be rejected.

Extend SPF Record (for external mail servers)

If you also want to use an external mail server (e.g. for newsletter sending via MailChimp), you need to adjust the SPF record accordingly.
You can do this in the System Configurator under DNS → Edit zone files.

Add mail server:

  1. Start editing: In the System Configurator, select the option DNS → Edit zone files.

  2. Add external mail server: Enter the IP address or MX record of the external mail server in the existing SPF record.

Add with an IP Address

If you want to authorize the static IP address of an external mail server:

"v=spf1 ip4:XXX.XXX.XXX.XXX include:spf.mail.webland.ch -all"

Replace XXX.XXX.XXX.XXX with the actual IP address of the external mail server.

Add with an MX Record

If you want to authorize the MX record of an external mail server:

"v=spf1 mx:mail.externaldomain.ch include:spf.mail.webland.ch -all"

Replace mail.externaldomain.ch with the actual MX record of the external mail server.

Notes

  • Always make sure the syntax is correct – an incorrect SPF record can cause your e-mails to be blocked.

  • DNS zone file changes may take some time before they are active worldwide (propagation).

  • With the option -all, you ensure that only the servers explicitly mentioned in the SPF record are allowed to send e-mails on behalf of your domain.

Need Help?

If you’re unsure, our Webland Support or your external mail provider will be happy to assist you.

Did this answer your question?