Help with SPF record

I want to set up a SPF record, I used this 2 links as guidance:

I want to allow only emails from 2 IP:


Any other has to be strictly rejected, so far this is what I have

"v=spf1 ip4: ip4: -all"

I currently have this configuration for MX:

dig +short MX

and for SPF:

dig +short TXT
"v=spf1 mx -all"

It’s just about setting right DNS records, this is done at your providers site.

See the wiki for instructions how to set it up with examples for different providers.

As regards Nethserver, the mail filter Rspamd uses SPF by default. You can check it in Rspamd web UI, at history tab search “spf”.

1 Like