> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SPF

> SPF record for Mailgun

## What is SPF?

An SPF record is a type of [Domain Name Service][1] (DNS) record that identifies which mail servers are permitted to send an email on behalf of your domain and/or can't send on behalf of your domain (allowed list and/or blocklist of IP / domains). Apply these restrictions by adding an [MX record][2] in your DNS zone.

## Why is it Important?

Today, nearly all abusive email messages carry fake sender addresses. Spammers send email from their mail servers but with your *domain* as the sending email. The victims whose addresses are being abused often suffer from the consequences because their reputation gets diminished and they have to disclaim liability for the abuse or waste their time sorting out misdirected bounce messages.

## What is the purpose of SPF record?

The purpose of an SPF record is to prevent spammers from sending messages with forged *From Addresses* at your domain. Recipients can refer to the SPF record to determine whether a message purporting to be from your domain comes from an authorized mail server.

**More info:**

Google article [about SPF records][3].

## SuperOffice CRM Online SPF details

Most European CRM Online customers uses Mailgun EU IP addresses.

The SPF 'mailgun.org' includes:

* '\_spf.mailgun.org' (all Mailgun US IP addresses)
* '\_spf.eu.mailgun.org' (all Mailgun EU IP addresses)

The SPF '\_spf.online.superoffice.com' includes:

* 3 IP addresses (or ranges) of a Mailgun US cluster (the IP addresses we used to use while we were using Mailgun US)
* shortcut to SPF range '\_spf.eu.mailgun.org' (all Mailgun EU IP addresses)

**All SuperOffice Online customers should add SPF '\_spf.online.superoffice.com' for the domains they use as sender's email or in custom DKIM.**

[1]: https://en.wikipedia.org/wiki/Domain_Name_System

[2]: https://en.wikipedia.org/wiki/MX_record

[3]: https://support.google.com/a/answer/33786?hl=en


## Related topics

- [SPF](/en/online/mail-services/mailgun/spf/index.md)
- [Security and best practices](/en/online/mail-services/mailgun/security.md)
- [Get Spf Domain](/en/api/reference/restful/agent/configuration_agent/get-spf-domain.md)
- [How to set up SPF Record](/en/online/mail-services/mailgun/spf/set-up.md)
- [SuperOffice.WebApi.Data.Configuration GetSpfDomainRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Configuration_GetSpfDomainRequest.md)
- [Reasons to customize Mailgun](/en/online/mail-services/mailgun/reasons-to-customize.md)
- [Mailgun](/en/online/mail-services/mailgun/index.md)
