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

# Setting Up DNS

To route email through SpamExperts filtering, you need to update your domain's MX records and, if using outbound filtering, your SPF record.

## Incoming Filtering (MX Records)

Replace your existing MX records with the SpamExperts global records:

| Type | Priority | Value                       |
| ---- | :------: | --------------------------- |
| MX   |    10    | `mx.spamexperts.com`        |
| MX   |    20    | `fallbackmx.spamexperts.eu` |
| MX   |    30    | `lastmx.spamexperts.net`    |

<Danger>
  You **must** remove your old MX records after adding the SpamExperts records. Spammers actively try different MX record priorities to bypass spam filters. If your original MX records remain, unfiltered email can still be delivered directly to your mail server.
</Danger>

After updating your MX records, ensure your mail server's destination is correctly configured in the SpamExperts control panel under **Incoming → Destinations** so that filtered email is delivered to the correct server.

### Region-Specific MX Records

If you have a regulatory requirement to route email through a specific geographic region, SpamExperts offers region-specific MX records (EU, US, UK, AU, CA, ZA). See the [SpamExperts MX Records documentation](https://documentation.n-able.com/spamexperts/userguide/Content/B_Admin%20Level/domains/mx-records.htm#se-global) for the full list.

The global records above are recommended for maximum redundancy. SpamExperts uptime and SLA guarantees do not apply to region-specific records.

## Outgoing Filtering (SPF Record)

If you are using SpamExperts outbound filtering, add the SpamExperts SPF include to your domain's TXT record so that receiving servers recognize mail routed through SpamExperts as authorized.

### If You Already Have an SPF Record

Add `include:spf.antispamcloud.com` between `v=spf1` and your `-all` or `~all` qualifier:

```dns theme={"theme":{"light":"light-plus","dark":"ayu-dark"}}
v=spf1 include:spf.antispamcloud.com include:your-existing-includes -all
```

### If You Do Not Have an SPF Record

Create a new TXT record:

```dns theme={"theme":{"light":"light-plus","dark":"ayu-dark"}}
v=spf1 include:spf.antispamcloud.com -all
```

For full SPF configuration details, including regional-specific SPF records, see the [SpamExperts SPF documentation](https://documentation.n-able.com/spamexperts/userguide/Content/B_Admin%20Level/outgoing-filtering/setting-up-spf.htm).

## Outgoing Filtering (SMTP Configuration)

Outbound filtering requires your email client or mail server to route outgoing mail through the SpamExperts SMTP servers instead of sending directly.

| Setting             | Value                               |
| ------------------- | ----------------------------------- |
| **SMTP Server**     | `smtp.antispamcloud.com`            |
| **Port**            | 587 (recommended, STARTTLS)         |
| **Alternate Ports** | 465 (SSL/TLS), 25 (not recommended) |
| **Authentication**  | Required (TLS before SMTP AUTH)     |

For mail server-specific configuration (Exchange, Postfix, Exim, etc.), see the [SpamExperts Outbound Filtering documentation](https://documentation.n-able.com/spamexperts/userguide/Content/B_Admin%20Level/outgoing-filtering/setting-up-your-smtp-hostname.htm).

## Verifying Your Setup

After updating DNS, allow time for propagation. You can verify your MX records are correctly configured using the MX Verification Tool inside the SpamExperts control panel, or by checking with [MXToolbox](https://mxtoolbox.com/SuperTool.aspx).

Once MX records have propagated, check the **Incoming → Logs** section in the SpamExperts control panel to confirm that messages are being routed through the filter.
