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

# How to Setup SPF in DirectAdmin

> This guide will help you set up your DNS and SPF using easy to follow steps. If you are still having issues with it, please contact the support team for assistance.

![](https://mintlify.s3-us-west-1.amazonaws.com/alore/images/directadmin-1.png)

## Procedure:

**Step 01**: Sign In to the [DirectAdmin](https://www.directadmin.com/) account
using your login credentials .

![](https://mintlify.s3-us-west-1.amazonaws.com/alore/images/directadmin.png)

**Step 02**: Scroll down to the Add Domains Records section.

**Step 03**: In the TXT line, enter your domain name or your sub-domain and your
SPF record

![](https://mintlify.s3-us-west-1.amazonaws.com/alore/images/directadmin-3.png)

**Step 04**: Do not forget to add a dot (.) at the end of your domain name.

**Step 05**: Enter your SPF record (e.g. “v=spf1 include:\_spf.smtp.com \~all”).

**Step 06**: Click the Add button.

<Note>
  On some servers we had to add a backslash `\` before each space otherwise the
  spf entry would not work. So if you get a weird result like `v=spf1` `a` `mx`
  `~all` with the standard spf record, please try with `v=spf1\ a\ mx\ ~all`
</Note>
