SPF and DKIM is fine. Still emails go to spam folders.

November 25, 2014 5.2k views


I'm using postfix for sending emails. Everything works awesome.
I configured SPF and DKIM. Checked my emails on mail-tester.com. Getting 10/10. But unfortunately my emails going to spam folder (or junk folder).

Source from outlook.com:

Authentication-Results: hotmail.com; spf=pass (sender IP is smtp.mailfrom=vlad@2tunnels.com; dkim=pass header.d=2tunnels.com; x-hmca=pass header.id=vlad@2tunnels.com
X-SID-PRA: vlad@2tunnels.com
X-SID-Result: PASS
X-Message-Status: n:n
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Message-Info: 11chDOWqoTmhqWF1Gu1G+Bin5Ot0X6mX/y+N1+YuovUubFO1/vhjeWErDGssvxHBpUwpUbPaEHxowqatIWlQoDz5XxZbr/kfANat/vO3ID6kYGb8G6Fml9piIM1YZ706w5ucsBAtk+xPFwM78Qe4fAlQOHNdMzdrTfX93glI3rQdNW6WONOICSGysRlLLb2389QI4TcEUQBnxJjilL4fug==
Received: from 2tunnels.com ([]) by COL004-MC5F3.hotmail.com with Microsoft SMTPSVC(7.5.7601.22751);
     Tue, 25 Nov 2014 14:45:07 -0800
Received: by 2tunnels.com (Postfix, from userid 1001)
    id AA95A400D6; Tue, 25 Nov 2014 17:45:06 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=2tunnels.com; s=mail;
    t=1416955506; bh=MIP9JX2pDQrcPyvexSAr/h5hxRiEsIeec0eg3Q5Iu44=;
To: jornyhanterson@outlook.com
Subject: TV-commercial starting tomorrow
X-PHP-Originating-Script: 1001:test.php
Message-Id: <20141125224506.AA95A400D6@2tunnels.com>
Date: Tue, 25 Nov 2014 17:45:06 -0500 (EST)
From: vlad@2tunnels.com (Vlad Dm)
Return-Path: vlad@2tunnels.com
X-OriginalArrivalTime: 25 Nov 2014 22:45:07.0475 (UTC) FILETIME=[76199630:01D00901]

Tomorrow we will start with heavy TV marketing in Sweden. There will be a lot of activity on the Saga Islands and offers during this period. Take advantage of our extra exposure and get a lot more sign ups. Our TV-commercial will run until the end of the year.

Any suggestions?

2 Answers

This is always a hard subject, and you don't seem to be listed on any of the major blacklists. But - the mail you're trying to send screams of advertising, and is probably marked as spam because of it. Adjust your content, and if this is some sort of mailing list, make sure you add a way to unsubscribe.

Or, take the easy way out and use a service like MailGun, Amazon SES or SendGrid. The cost is negligible, but you save yourself a lot of trouble.

  • I tried to send simple text (without ads). Same result. I took this text from other email, that was in my inbox (not spam folder).

Mail service filters can be a little too restrictive some times, so is better for you to set up all your domain correctly, as for now 2tunnels.com has no records on a dns query lookup, no MX, so maybe thats the cause of your problem.

Try adding some MX records, especially since you are indicating SPF to check MX on "v=spf1 mx a ip4: ~all"

  • Can you be more specific about MX records. I'm newbie in this field. Mby some article.
    Thank you.

  • Domain MX records say to the web (other servers) which mail server they should send emails to for your domain, so if lets say your email accounts are hosted in Google Apps instead of your Droplet then the e-mail servers will send email messages to google and not to DO.

    MX set up depends on your provider, but if your email accounts are on your DO Droplet should me something like this:

    record type: mx, host:@, Priority: 1
    record type: mx , host:yourdropletip, Priority: 1

    you can click the help button on DO Panel, and type this for a tutorial about how to set MX records on DO:
    How do I add a MX Record to my site?

  • So I added MX record. Nothing changed, so I just edited SPF (removed "mx" out of there).
    Same result. Emails are going to spam folder.

  • I don't see any MX record added to your domain, remember DNS records take a while to propagate over the internet.

Have another answer? Share your knowledge.