3

A long time ago I posted a question here: Postfix: Gmail marking my email as spam where I said that although emails send from my servers were passing all the DKIM and SPF tests they were getting deliver to SPAM on Gmail.

Two days ago I was configuring a new system and noticed a very strange thing related to SPF — without any SPF TXT record on the DNS Zone, the email are delivered to Inbox and with SPF defined the are getting delivered on SPAM.

My SPF entries are like this:

domain.dev.             IN      TXT     "v=spf1 ip4:x.x.x.x ip6:x:x:x:x::x -all"

Isn't SPF record for the domain correct? If not what is wrong?

Every time I place that line on my DNS zone, Google starts delivering my email to SPAM, and even more interesting is what Gmail says about the emails.

Test email sent with SPF:

spf=pass (google.com: domain of email@domain.dev designates x.x.x.x as permitted sender) smtp.mail=email@domain.dev;

=> Delivered to SPAM box.

Test Email sent without SPF:

spf=pass (google.com: best guess record for domain of email@domain.dev designates x.x.x.x as permitted sender) smtp.mail=email@domain.dev;

=> Delivered to inbox.

Anyway has experienced this before? Is my SPF wrong? Thank you!

TCB13
  • 1,166
  • 1
  • 14
  • 34
  • Considering that it seems to consider both to have passed the SPF check, it would make more sense if the different actions came down to something else than SPF (email contents, maybe?). – Håkan Lindqvist May 24 '15 at 16:08
  • I tried the same content and then a different content again in both test, to avoid that. I know it doesn't make a lot of sense, but I've been around this issue for months now. – TCB13 May 24 '15 at 16:30
  • HOw did you derive the IP4 and IP6 entries for this SPF record? Who are you sending email "from?" Headers would be super helpful or at least a few more details. I think the most likely explanation is that you entering incorrect IP addresses in your SPF. If you corrected them, that'd fix the problem. – Neil Anuskiewicz Feb 15 '17 at 05:58
  • @NeilAnuskiewicz the IP is correct, also just look at this `spf=pass` is there was an issue with the IP it would not mark it as `pass`. – TCB13 Feb 17 '17 at 18:30
  • Just to confirm, does your SPF record pass a validation check? http://www.kitterman.com/spf/validate.html – Neil Anuskiewicz Feb 21 '17 at 15:39
  • @NeilAnuskiewicz yes it does! `SPF record passed validation test with pySPF (Python SPF library)!` – TCB13 Feb 27 '17 at 01:58

0 Answers0