# So what is wrong with SPF record

**URL:** <https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105>\
**Category:** Help! (Home for newbies)\
**Created:** [September 17, 2025, 2:24pm UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105 "2025-09-17T14:24:49Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [September 17, 2025, 2:24pm UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/1 "2025-09-17T14:24:49Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Debian Linux 12 |
| Usermin version | 2.400 |
| Virtualmin version | 7.40.0 |
| Theme version | 25.01 |
| Nginx version | 1.22.1 |
| Package updates | All installed packages are up to date |

```auto
"v=spf1 a mx a:domain.me.uk ip4:xxx.42.228.244 ip6:nnnn:3c03::f03c:93ff:fe19:a2ab ?all" 

```

as produced by Virtualmin in `DNS Settings and placed in the external DNS as a TXT record that it fails SPF checks?

---

<div class="post-metadata">

**Author:** ![Steini](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/steini/32/19731_2.png) [@Steini](https://forum.virtualmin.com/u/Steini)\
**Post date:** [September 17, 2025, 2:32pm UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/2 "2025-09-17T14:32:42Z")

</div>

Switch from neutral to fail: `"v=spf1 a mx a:domain.me.uk ip4:xxx.42.228.244 ip6:nnnn:3c03::f03c:93ff:fe19:a2ab -all"`

> The SPF record has designated the host as NOT being allowed to send but is in transition. Will be rejected.

Or less aggressive use a softfail: `"v=spf1 a mx a:domain.me.uk ip4:xxx.42.228.244 ip6:nnnn:3c03::f03c:93ff:fe19:a2ab ~all"`

> The SPF record has designated the host as NOT being allowed to send. Will be accepted but marked.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [September 17, 2025, 3:05pm UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/3 "2025-09-17T15:05:40Z")

</div>

Tx - but still fails, after replacing `?all` with `~all`

testing at `https://www.learndmarc.com/`

```auto
>> Running SPF
------------------
I couldn't find a valid SPF policy at domain.me.uk using the identity RFC5321.MailFrom. The Auth Result is none.

```

---

<div class="post-metadata">

**Author:** ![Steini](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/steini/32/19731_2.png) [@Steini](https://forum.virtualmin.com/u/Steini)\
**Post date:** [September 17, 2025, 3:42pm UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/4 "2025-09-17T15:42:52Z")

</div>

The entry is valid, as long as you’re not actually using `domain.me.uk`… 😉

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [September 17, 2025, 5:36pm UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/5 "2025-09-17T17:36:19Z")

</div>

and use `-all` like @Steini says. This has recently been set as the default in virtualmin (been banging on about this for years 😃 ), any of the other options are pointless.

if you are using SPF you want to control who can send using it you need `-all`

```auto
"v=spf1 a mx a:domain.me.uk ip4:xxx.42.228.244 ip6:nnnn:3c03::f03c:93ff:fe19:a2ab ?all" 

```

I think this is a still fault with virtualmin, but if the record is on the `domain.me.uk` DNS you don’t actually need `a:domain.me.uk`, you technically could also get rid of the ip4: definition, but it does not harm adding these extras just prevents uneeded lookups.

Also, if any part of your spf record does not resolve i.e. dead domain then the record will fail.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [September 18, 2025, 8:37am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/6 "2025-09-18T08:37:35Z")

</div>

Is it reporting from the correct DNS, also I have had some name server services not needing the quotations, they add it themselves ie.

```auto
v=spf1 a mx a:domain.me.uk ip4:xxx.42.228.244 ip6:nnnn:3c03::f03c:93ff:fe19:a2ab ?all 

```

Who are you using?

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/6/9/69e1524bcea8732a8469d181dd6ce02537590334.png)

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [September 18, 2025, 8:38am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/7 "2025-09-18T08:38:52Z")

</div>

Swap ?all to -all otherwise your spf record is pointless.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [September 18, 2025, 8:41am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/8 "2025-09-18T08:41:10Z")

</div>

That shouldn’t cause a lookup not finding a record though.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [September 18, 2025, 8:53am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/9 "2025-09-18T08:53:24Z")

</div>

> That shouldn’t cause a lookup not finding a record though.

correct

it is hard to fix an SPF record issue without the domain name to test. 😃

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [September 18, 2025, 9:05am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/10 "2025-09-18T09:05:40Z")

</div>

> [@Steini](#):
>
> as long as you’re not actually using `domain.me.uk`…

the real domain is obscured (sort of) and the actual ip4 ip6 but it **is** a .me.uk tld.

I have changed to a `-all` record and tested using a different “service” [https://www.mimecast.com/products/dmarc-analyzer/spf-record-check/](https://www.mimecast.com/products/dmarc-analyzer/spf-record-check/)

and the record still Fails  
 ![Screenshot 2025-09-18 100219](https://cdn.forum.virtualmin.com/uploads/default/original/3X/c/d/cdaf9c34d72862407382037d9783502e495d4766.png)

Annoying when this all used to work 💢

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [September 18, 2025, 9:07am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/11 "2025-09-18T09:07:26Z")

</div>

if you want to pm me the domain I can have a quick look.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [September 18, 2025, 9:24am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/12 "2025-09-18T09:24:19Z")

</div>

> [@stefan1959](#):
>
> Who are you using?

Registrar by Porkbun (as previous registrar abandoned owner and total failed to support)  
NS records point to Linode (all ns1 to ns5)

Linode give full access to DNS records (and their support also open port 25 on request)

I have several other domains through them some with working email.

it seems just this one that is causing problems SPF → DKIM → DMARC (with Gmail and now wth Hotmail) but it seems that external mail from other sources and from backups (Virtualmin to domain owner) is being delivered.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [September 18, 2025, 9:29am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/13 "2025-09-18T09:29:17Z")

</div>

gmail, hotmail/outlook and probably yahoo all have strict rules on SPF/DKIM/DMARC.

internally routed emails are probably not tested against the SPF/DMARK/DKIM records.

---

<div class="post-metadata">

**Author:** ![dimitrist](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/dimitrist/32/21546_2.png) [@dimitrist](https://forum.virtualmin.com/u/dimitrist)\
**Post date:** [September 18, 2025, 9:58am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/14 "2025-09-18T09:58:56Z")

</div>

“unable to find an SPF record”, means there isn’t an SPF record, or you searched with wrong/other domain

what does `dig TXT your_domain` output? (online tool available at : [https://digwebinterface.com/](https://digwebinterface.com/) - choose type TXT)

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [September 18, 2025, 10:39am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/15 "2025-09-18T10:39:37Z")

</div>

not always, it could just be badly formed. remember they are usually `TXT` records and not a specific `SPF` record type anymore, so unless it is formed correctly it will not appear as a SPF record.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [November 17, 2025, 10:40am UTC](https://forum.virtualmin.com/t/so-what-is-wrong-with-spf-record/135105/16 "2025-11-17T10:40:13Z")

</div>

Closed on November 17, 2025, 10:40am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
