Postfix: Gmail marking my email as spam

7,373

Apparently after a few days it start working fine.

Right now, I guess what really matters in GMAIL is actually passing this tests:

SPF check:          pass
DomainKeys check:   neutral
DKIM check:         pass
Sender-ID check:    pass
SpamAssassin check: ham

And wait 3 or 4 days so google can update their servers. Seems like the spam filter does some kind of internal cache on DKIM and SPF lookups for a particular domain.


UPDATE: This problem seems to be back, I've no ideia how to fix it.

Share:
7,373

Related videos on Youtube

Rob Cle
Author by

Rob Cle

Computer Programming.

Updated on September 18, 2022

Comments

  • Rob Cle
    Rob Cle almost 2 years

    I'm been trying to understand why Gmail is treating the email sent from one of my domain/server as SPAM. I found a lot of threads here about this issue, however I checked the usual suspects like domain keys, spf etc.

    My email is accepted by Outlook.com, which from my understanding has a lot more aggressive spam filter.

    I tested my config using [email protected] and I got this:

    SPF check:          pass
    DomainKeys check:   neutral
    DKIM check:         pass
    Sender-ID check:    pass
    SpamAssassin check: ham
    

    Everything looks fine.

    After sending an email to a gmail account I get this under the headers:

    Received-SPF: pass (google.com: domain of [email protected] designates 89.x.x.8 as permitted sender) client-ip=89.x.x.x;
    Authentication-Results: mx.google.com;
           spf=pass (google.com: domain of [email protected] designates 89.x.x.8 as permitted sender) [email protected];
           dkim=pass [email protected]
    

    As you can see, the email is passing on spf and dkim without issues on gmail servers.

    Finally I checked my server IP, hostname and domain at http://mxtoolbox.com/blacklists.aspx for RBL blocks and they're not listed anywhere.

    Why is gmail treating my emails as SPAM? It makes no sense, I've complied with every single good practice.

    Other Note:

    • Reverse DNS is also ok;
    • Tests at http://www.allaboutspam.com are green except for Email server is not using BATV format;

    Thank you.


  • djsumdog
    djsumdog over 5 years
    Unless you send a lot of e-mail from your server, slowly ramp up the sending from it, and get a lot of people to mark it as "not spam", then you will always hit this issue. This has to do with the magical black box that Google/Microsoft use to filter e-mail. There's more about it here: penguindreams.org/blog/…