Sign in to follow this  
tekiegreg

Updating SPF Records Can it Be Done Automatically?

Recommended Posts

Noticed today my IP Address for my outgoing mail changed.  No big deal typically, but it knocked my SPF Record out of whack and was hurting my outgoing email's spam score with a soft fail on SPF.

Is there an easy way to automate this to "Anything Hawkhost changed my IP to for outgoing mail, I promise it's not Spam.  If it's anything else but that server drop that crappy email like a hot potato."

Share this post


Link to post
Share on other sites

The best solution would be to add an include to your spf record to include "_spf.arandomserver.com" .  This encompasses all our mailing IP's so you'd never need to worry about it again.  Any new account with us actually has this record added automatically.

Share this post


Link to post
Share on other sites

Going to try this then:

 

v=spf1 +a +mx +ip4:<<primary server IP Address>> +a:_spf.arandomserver.com +mx:_spf.arandomserver.com +ip4:<<current server IP Address>> +ip4:<<Prior server IP Address>> ~all

(deliberately snipped IP Addresses)

Thing that's durable enough?

Share this post


Link to post
Share on other sites

Actually after still some more tinkering, this works like a charm:

 

v=spf1 +a +mx +ip4:<<primary IP Address>> +include:_spf.arandomserver.com -all

 

Also note the -all, so there are no soft fails.  If you're not _spf.arandomserver.com you can reject.

Share this post


Link to post
Share on other sites
20 hours ago, tekiegreg said:

v=spf1 +a +mx +ip4:<<primary IP Address>> +include:_spf.arandomserver.com -all

That's exactly the format you'd want to use so you're good and shouldn't run into any issues with SPF record problems going forward.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this