> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hodi.host/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to prevent spoofing of your domain name?

Domain spoofing is a technique used by cybercriminals to send emails pretending to be from legitimate domains. Implementing protocols such as **SPF** and **DMARC** helps protect your domain against this threat.

First of all, we invite you to consult the guide "[**How to improve the deliverability of your emails?**](https://help.hodi.host/en/article/how-to-improve-the-deliverability-of-your-emails-liodyg/)" which will help you learn more, and will allow you to verify that your legitimate emails will be properly delivered.

## Modify your SPF record
An SPF record is a type of TXT record in your domain's DNS. It defines which servers are authorized to send emails on your behalf.

To secure your domain and ensure that only our server is legitimate, we recommend modifying your DNS TXT record and replacing `~all` with `-all`:

* `~all`: Allows some non-compliant emails (soft fail).
* `-all`: Rejects all emails from unauthorized servers (hard fail).
Consult our guide "[**How to edit your DNS zone?**](https://hodi.host/knowledgebase/185/How-to-edit-your-DNS-zone.html)" to learn how to make this change.

## Modify your DMARC record
DMARC defines a policy for handling non-compliant emails. By default, our servers apply a **quarantine** policy, but you can strengthen security by choosing to **reject** these emails.

To do this, modify the DNS entry `_dmarc.` followed by your domain name (for example, if your domain is `mapetiteentreprise.re`, it is `_dmarc.mapetiteentreprise.re`) to `p=reject` (replace mapetiteentreprise.re with your domain name).

Consult our guide "[**How to edit your DNS zone?**](https://hodi.host/knowledgebase/185/How-to-edit-your-DNS-zone.html)" to learn how to proceed.