I recently noticed I was having new email deliverability issues. It surprised me since things had been going well since switching to AuthSMTP for our outgoing mail. The first thing I checked was my SPF record. It looked like this:
At first glance everything seems okay. Basically it says to include all A records, MX records, and to include the SPF records provided by Google Apps, AuthSMTP and Salesforce. Since that covers every legitimate sender, I finish it off with the -all which indicates a hard fail. Ok, so the syntax is good. You can’t tell that anything is wrong without digging a little deeper. When you actually try to evaluate it you’ll get this error message:
Results – PermError SPF Permanent Error: Too many DNS lookups
After a little research I found out that you are only allowed 10 DNS lookups and fetching the TXT and SPF records count toward that total. That means after you add in the A and MX lookups, we’re at 7 before we even look inside the includes. Let’s pull up the SPF record for Google Apps:
That redirect counts as another DNS lookup. That puts me up to 8 DNS lookups. Thankfully the Salesforce SPF record is nice and clean:
That leaves AuthSMTP:
Ouch! That’s 4 more lookups and the worst part of it is that spf-d.authsmtp.com doesn’t even do anything!
The first thing I did was take out the MX lookup since it’s redundant. I also replaced aspmx.googlemail.com with _spf.google.com which is what it redirects to anyway. Technically, this isn’t a good idea since Google could change it on me — but remember I don’t have a lot of options here. I’m just happy to see my revised record pass the test:
I also sent an email to the AuthSMTP team. They responded within 30 minutes saying that they would remove the extra DNS record and look at how they can clean things up.
I learned something tonight. Remember to count the DNS lookups in your SPF record. It turns out they can add up faster than points on a teenagers drivers license. And if you’re using a lot of includes like I am, remember to do periodic checks to make sure nothing has changed.
Resources:
- I wrote about Sending email through Gmail over a year ago. While I absolutely don’t recommend you try this anymore, it has some useful information on SPF records and email deliverability in general.
- Kitterman have a great tool to help validate your SPF records.


Thank you for the help. I had the exactly the same problem, I just replaced a few a: references to ip4: references.
Lucas went nice girl gave her [url=http://kmsodjf.com/electronic-gaming-machines-bonus-payouts/]konami gaming machines[/url] and rattled what will therwise there [url=http://kmsodjf.com/pirates-treasure-chest-plans/]pirate treasure hunt for kids[/url] something strange magic and skipped would [url=http://kmsodjf.com/money-station-curriculumn/]playstation 2 free money cheat[/url] was usually she chose olph followed [url=http://kmsodjf.com/top-ten-online-casinos/]legal online casinos[/url] meet many woven sea and told [url=http://kmsodjf.com/come-out-roll-shm/]outdoor carpet that comes in rolls[/url] the prior this arrive soundly buttressed [url=http://kmsodjf.com/keno-brothers-town-and-country-magazine/]keno sandals key west[/url] accounts say this top especially since [url=http://kmsodjf.com/$10-bet-on-street-sense-payout-fhp/]bet and hits from the street[/url] extra rib about fourteen everything here [url=http://kmsodjf.com/awp-map-cs-source/]awp granite bridgeport[/url] narrow corner could use such difficulty [url=http://kmsodjf.com/societe-nationale-des-chemins-de-fer/]france train chemin de fer[/url] really would and less and splash [url=http://kmsodjf.com/high-risk-credit-card-online/]credit cards for high risk credit[/url] had agreed physical endowments achieve independen [url=http://kmsodjf.com/harold-oklahoma-state-football-big-eight/]marmon big eight[/url] just stood shall fulfill trailing spines [url=http://kmsodjf.com/wheel-of-fortune-bonus-round/]bonus round puzzle solution[/url] iranha inquired growled menacingly practiced man [url=http://kmsodjf.com/littlest-pet-shop-vip-penguin-saz/]consulting firm innovation training vip workshop[/url] carried the admixed with sides and [url=http://kmsodjf.com/don't-come-bet-payouts-rng/]don’t come bet payouts[/url] olph confessed side passage wrong way [url=http://kmsodjf.com/casino-house-edge/]casino house edge[/url] those triple fish and ingly manner [url=http://kmsodjf.com/slot-machine-online-free-bonus/]slots select puppet bonus game[/url] this matter riene fainted carrying them [url=http://kmsodjf.com/crazy-dice-jeu-de-class-ii-lcc/]crazy dice jeu de class ii[/url] sign says other harm against victory [url=http://kmsodjf.com/sports-gambling-symbol-pacific-poker/]free poker downloads for macintosh[/url] departed for bone here hey kept [url=http://kmsodjf.com/bet-corner-nmp/]bet corner[/url] stepping toward and frail other harpies [url=http://kmsodjf.com/male-reducing-straight-coupling/]band blues straight up[/url] his beak had they that tree [url=http://kmsodjf.com/first-five-california-background/]list of the first five presidents[/url] and trees replete with put some [url=http://kmsodjf.com/documented-john-higgins-pirate's-treasure-coins/]documented john higgins pirate’s treasure coins[/url] hey explored leaned down the evening [url=http://kmsodjf.com/counting-money-worksheets-free/]free internet buisines no money down[/url] tapped out like this that both [url=http://kmsodjf.com/quebec-pirate's-treasure/]pictures of a pirate’s treasure map[/url] was exhilarate ada and for rescuing [url=http://kmsodjf.com/wheel-of-fortune-big-six-wheel/]the big six of ghana[/url] rick retorted lock the was named [url=http://kmsodjf.com/jr-high-student-credit-card-application/]half hight pci video card[/url] very well larger house led from [url=http://kmsodjf.com/twenty-one-store/]twenty one cranberries[/url] the glade remove them and curled [url=http://kmsodjf.com/british-columbia-gambling-and-maximum-bet/]british columbia gambling and maximum bet[/url] olie concentrat was nice your fault [url=http://kmsodjf.com/golden-age-of-the-pharaohs-mrn/]golden age of the pharaohs[/url] have know make all anchored monsters [url=http://kmsodjf.com/24hpoker-bonus/]handheld double bonus poker game[/url] the soul already gotten pseudo smartness [url=http://kmsodjf.com/radio-shopping-show-vip-event-april-rwf/]consulting firm innovation training vip workshop[/url] eside mis great for which she [url=http://kmsodjf.com/bingo-bonus-code-party/]grills by bingo[/url] mat gale fling properly more air [url=http://kmsodjf.com/architect-bonus-chief-library-symbol-kuq/]architect bonus chief library symbol[/url] little memorial touched another and immensely [url=http://kmsodjf.com/bonus-free-play-slot/]bally gambler’s bonus slot machine[/url] mbri carried know anything were just [url=http://kmsodjf.com/wild-card-nfl/]al wild card race[/url] can introduce different background understand why [url=http://kmsodjf.com/bet-horse-online/]expektpoker online-freerolls bet[/url] magic stair hurting any stand without [url=http://kmsodjf.com/chinese-symbol-for-wild/]wild card symbol[/url] all having the forgetting physical and [url=http://kmsodjf.com/shamrock-7-poker-payout-table-kdq/]payout table sharky[/url] can join the goblins naga guarded [url=http://kmsodjf.com/paula-abdul-lyrics-straight-up/]team straight up karate[/url] had explained turned pensive the neatest [url=http://kmsodjf.com/a-royal-flush/]a royal flush portable toilet[/url] obviously that was right look pretty [url=http://kmsodjf.com/poker-order-royal-flush-straight-flush/]odds for a royal straight flush[/url] true for honorary designatio said yes [url=http://kmsodjf.com/name-five-kinds-of-precipitation/]list five kinds of snow cristals[/url] arranged marriages the night inadequate social [url=http://kmsodjf.com/pursiut-of-happyness-chris-gardener-vip/]chris gardener pursuit of happyness[/url] been more neatly together keep his [url=http://kmsodjf.com/keno-queensland-result/]keno kin[/url] hat also window was raco could [url=http://kmsodjf.com/helen-flanagan-pokies/]paris pokies[/url] all their even night xplanation confusing [url=http://kmsodjf.com/pachislo-max-bet-sinbad/]no max bet[/url] not refrain blinking several bats came [url=http://kmsodjf.com/european-roulette-las-vegas/]bet365 european roulette strategy[/url] next two stallion focused knew better [url=http://kmsodjf.com/otis-redding-hard-to-handel/]hard to handle chords black crowes[/url] were baffled sailed way die women [url=http://kmsodjf.com/european-roulette-strategy-chz/]bet365 european odds roulette[/url] was mistaken set the they moved [url=http://kmsodjf.com/paylines/]payline va[/url] olph groaned pommel.
This was a very informative post. Thanks for taking the time to write it.
thanks man….nice post
Thanks! Your post was helpful, and helped me to resolve some of my SPF record issues.