[email] How to create SPF record for multiple IPs?

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 the second syntax correct? Thanks.

This question is related to email spf

The answer is


Try this:

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

The open SPF wizard from the previous answer is no longer available, neither the one from Microsoft.