All emails sent are flagged as spam

August 27, 2014 1.7k views

Been trying to get mail to send all day without being flagged as spam, but they still are.
My IP is not blacklisted.
Here is the source for one of my emails sent to gmail:

Delivered-To: oli.brabiner@gmail.com
Received: by 10.217.123.201 with SMTP id dh51csp583184web;
        Wed, 27 Aug 2014 13:32:57 -0700 (PDT)
X-Received: by 10.181.5.3 with SMTP id ci3mr32275276wid.57.1409171577616;
        Wed, 27 Aug 2014 13:32:57 -0700 (PDT)
Return-Path: <no-reply@tp-tennis.co.uk>
Received: from tp-tennis.co.uk ([178.62.0.187])
        by mx.google.com with ESMTP id az10si3886631wib.11.2014.08.27.13.32.57
        for <oli.brabiner@gmail.com>;
        Wed, 27 Aug 2014 13:32:57 -0700 (PDT)
Received-SPF: pass (google.com: domain of no-reply@tp-tennis.co.uk designates 178.62.0.187 as permitted sender) client-ip=178.62.0.187;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of no-reply@tp-tennis.co.uk designates 178.62.0.187 as permitted sender) smtp.mail=no-reply@tp-tennis.co.uk;
       dkim=neutral (bad version) header.i=@
Received: by tp-tennis.co.uk (Postfix, from userid 33)
    id 0325540061; Wed, 27 Aug 2014 16:32:57 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tp-tennis.co.uk;
    s=mail; t=1409171577;
    bh=BriIWjnvfwxK9HYSbdzgzkiaww0z7HQGy603k/KxvR4=;
    h=To:Subject:Date:From:From;
    b=O2yTbSPer7oVCYYP2tJbg9xIeaY6PFZmcIN+Y4Rn4aYz6Lnzd7H+MZNXXcaleNkkP
     TR5svmapqPCDKVhkCBKqUgQ6xR90+6tSu0BIxMyi0MPg72qEfFVeptFEsq633W/LVU
     0h/lRe40vn1XSZwhcTWao5EDXovF7ClEoQQMVEP8=
To: oli.brabiner@gmail.com
Subject: A Subject Here
X-PHP-Originating-Script: 0:programmessys.php
Message-Id: <20140827203257.0325540061@tp-tennis.co.uk>
Date: Wed, 27 Aug 2014 16:32:57 -0400 (EDT)
From: no-reply@tp-tennis.co.uk (no-reply)


Hi there,
This email was sent using PHP's mail function.

This is my SPF record:

"v=spf1 mx a ip4:178.62.0.187 include:tp-tennis.co.uk -all"
1 Answer

A small change to you TXT record:

"v=spf1 mx a ip4:178.62.0.187 include:tp-tennis.co.uk ~all"

I have changed the hyphen before "all" to a tilde (~).

Also I find that you're using Mailgun for handling incoming emails why not use it to send emails too?

Mailgun has instructions on how to configure Postfix to relay emails.

Once done do a mail test.

  • i actually gave up on this and started using MailGun for outgoing mail, so that's probably what you saw. I may try what you suggested at some point but i remember it being mentioned in another thread and not working.

  • Doing a mail test will help understand why directly sent emails are marked as spam.

Have another answer? Share your knowledge.