OT. spf DNS record help

Oct 18, 2015 3 Replies

I want to set up an spf record for mydomain.co.uk, using this format:-



"v=spf1 a ip4:xxx.xxx.xxx.xxx -all" my question is what address to replace x , the domain ip or the smtp server range.



Thanks Allan


The short answer is "anything that might legitimately send email addressed from your domain", so the legitimate SMTP server range for definite, plus maybe any webserver you have if that sends mail directly.

formatting link

You may wish to consider using ~all instead of -all at the end. -all is a hard bounce- i.e. reject mail unless from the allowed range. ~all is less likely to cause delivery problems but people can still use SPF for filtering.

Donno for sure but logic and sense says the IP of whatever machine is trying to send mail for your domain.

Why not use "v=spf1 mx -all"?

Then if the mx machine(s) alter you don't have to worry about (aka forget to) update your spf records.

Thanks guys, just needed someone to confirm in plain English!

Allan

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required