I have a problem with one of the email services. It rejects emails from my server. I contacted them and they answered that they check SPF records and I am sending emails from not authorised server.

This is my SPF record:

v=spf1 a mx include:_spf.google.com ~all 

It contains "a" and so far I was sure that it's enough and I can send mail from server which IP address is listed as A record. Do I need to include server's IP address?

  • Let's see the bounce message. – Michael Hampton Jan 21 '13 at 22:04
  • are you trying to send emails from gmail? – Hex Jan 21 '13 at 23:07
  • no, Gmail is accepting my email without problems. It's a small provider. – user1821484 Jan 23 '13 at 7:50

Google recommends just v=spf1 include:_spf.google.com ~all as per http://support.google.com/a/bin/answer.py?hl=en&answer=178723

| improve this answer | |
  • But what about "A"record? I wanted to know if there is a need to add: "ip4:myserversip" or is enough to add just "a". – user1821484 Jan 22 '13 at 8:16
  • As long as it's the same ip as the a record for the domain, it's enough. Also, you specified ~all vs -all. It means to soft fail. They shouldn't be rejecting the email only for a fail with the spf records. A key thing to verify is that reverse dns is working correctly for your server's ips. – R. S. Jan 22 '13 at 20:26
  • Yes, reverse DNS is working correctly. All main email providers like Gmail, Yahoo. Hotmail accept mails from my server. It's only 1 small provider says I have problems with everything. – user1821484 Jan 23 '13 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.