开发者

How to create SPF record for multiple IPs?

开发者 https://www.devze.com 2023-03-08 11:59 出处:网络
I do not find any guidelines regarding how to configure multiple IPs into an SPF record. So far I used (for example):

I do not find any guidelines regarding how to configure multiple IPs into an SPF record. So far I used (for example):

v=spf1 ip4:180.72.100.0/24 a mx ?all

But now I should add another range of IPs that are allowed, e.g.

v=spf1 ip4:180.72.100.0/24 ip4:180.20.111.0/24 a mx ?all

Is开发者_如何学C the second syntax correct? Thanks.


Yes the second syntax is fine.

Have you tried using the SPF wizard? https://www.spfwizard.net/

It can quickly generate basic and complex SPF records.


Use CIDR notation such as ip4:180.72.100.0/24 for the range 180.72.100.0 - 180.72.100.255.

And you can have multiple ranges in your SPF record like so:

v=spf1 ip4:180.72.100.0/24 ip4:180.20.111.0/24 a mx ?all

You can use this calculator to determine the correct notation for your IP ranges:

https://account.arin.net/public/cidrCalculator


Try this:

v=spf1 ip4:abc.de.fgh.ij ip4:klm.no.pqr.st ~all
0

精彩评论

暂无评论...
验证码 换一张
取 消