Is this correct setting for SPF record. Should i use double quotes or not in DATA part?

Even with this I have problem rejecting emails from google:

gmail-smtp-in.l.google.com[2607:f8b0:400d:c00::1a] said: 550-5.7.1
[2a02:c200:0:10:3:2:843:1      12] Our system has detected that this
550-5.7.1 message is likely unsolicited mail. To reduce the amount of spam
sent 550-5.7.1 to Gmail, this message has been blocked. Please visit
550-5.7.1 http://support.google.com/mail/bin/answer.py?hl=en&answer=188131
for 550 5.7.1 more information. 4si4196823qcl.68 - gsmtp (in reply to end
of DATA command)
  • 1
    As answered below, you do have a missing TXT record. Also, the Reverse DNS (PTR) record for the IP in your screenshot resolves to: mail.djuric.org. Check with your host or ISP as to how to setup Reverse DNS. Lastly, have you checked RBL databases to see if your IP is listed? It's listed in this one as indicated here.
    – dan
    May 5, 2014 at 19:24
  • I have djuric.org and kupissimo.com on same IP address and same tomcat. I can defined only one PTR record, correct?
    – djuRa
    May 6, 2014 at 9:31
  • It's generally not recommended to have multiple PTR records, though templates for control panels typically add them automatically. You might designate the PTR for the domain that your mail server is associated with, so that mail servers can match the IP with the mail servers's host.
    – dan
    May 7, 2014 at 0:15

1 Answer 1


Looking at the screenshot you have the zone “type” for the SPF record set as SPF when it should be TXT. Is that SPF zone type a preset from your control panel? Or did you manually enter it? Regardless, it needs to be TXT. This site explains it well:

The SPF information must be defined using a standard TXT resource record (RR).

Also, I am not sure if mx is needed, so would recommend using this instead:

"v=spf1 ip4: ~all"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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