DIYbanter

DIYbanter (https://www.diybanter.com/)
-   UK diy (https://www.diybanter.com/uk-diy/)
-   -   OT. spf DNS record help (https://www.diybanter.com/uk-diy/386170-ot-spf-dns-record-help.html)

Al October 18th 15 03:22 PM

OT. spf DNS record help
 
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

Chris Bartram[_2_] October 18th 15 03:56 PM

OT. spf DNS record help
 
On 18/10/15 15:22, Al wrote:
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.

http://www.kitterman.com/spf/validate.html

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.



Dave Liquorice[_2_] October 18th 15 04:17 PM

OT. spf DNS record help
 
On Sun, 18 Oct 2015 07:22:32 -0700 (PDT), Al wrote:

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.


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.

--
Cheers
Dave.




Al October 19th 15 08:54 AM

OT. spf DNS record help
 
On Sunday, 18 October 2015 16:28:06 UTC+1, Dave Liquorice wrote:
On Sun, 18 Oct 2015 07:22:32 -0700 (PDT), Al wrote:

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.


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.

--
Cheers
Dave.


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

Allan


All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2014 DIYbanter