Knowledgebase

Merging SPF records

If you use several services to send emails, then you may need to modify an existing SPF record in order to avoid ending up in the recepients' spam filters. This is done through the DNS widget in the Dashboard.

Dissecting the default SPF record

First, let's have a look at the default SPF record:

v=spf1 include:spf.surf-town.net -all

The first part, "v=spf", is used to specify that the record in question is an SPF record.

The second, "include:spf.surf-town.net" tells the recepients to include the SPF setup on the domain spf.surf-town.net. We use this domain to list our various email services so that you won't have to worry about which servers that are used to send email.

The third part, "-all", specifies that unauthorised emails should be discarded. One can also use "~all", a less strict variant of "-all", or "?all" if one wants to let the recepients decide what to do with unauthorised emails. We recommend you use "-all" unless you have a specific reason for not doing so.

Merging SPF records

Now, assume we have the following records:

v=spf1 include:spf.surf-town.net -all

And

v=spf1 include:spf.other-vendor.net -all

The first, is Surftown's default SPF record, the second is the SPF record for another provider. If you use another provider for sending things like newsletters, then the other provider will be able to provide you with the record you should use instead.

In the example above, the first and last parts of the two records are identical. Thus, we simply need to add the middle part of the second record, to the default record:

v=spf1 include:spf.surf-town.net include:spf.other-vendor.net -all

Please note, that if the last part, "-all", differ, then you can only select one of them. You cannot have two declarations for all in one SPF record.

Adding the new SPF record

In order to add the new record, you must first go to the Surftown Dashboard -> Domains -> DNS settings.

In the DNS settings, first remove the current SPF record. Once that is done, add a new TXT record, type @ in the Name field, and then paste the merged SPF record in the data field. Then save the new record.

Due to the way DNS records are cached, it may take somewhere between one 1-24 hours before the new record is visible to the recepients.


If you would like Surftown to preform this task for you, or if you are in need of any other assistance, please have a look at the paid services we kan offer through our Service Desk Services: https://www.surftown.com/da/service-desk/
Contact
Should you not find what you are looking for then feel free to ask our support

Create A Ticket
Service Desk
Are you facing bigger challenges which requires a bit more know-how and time than you have?

Surftown Service Desk is services where we do the work to you. Our Service desk will get the job done.

Do it for me