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

Posted November 25, 2014 26k views


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

Source from

Authentication-Results:; spf=pass (sender IP is; dkim=pass; x-hmca=pass
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 ([]) by with Microsoft SMTPSVC(7.5.7601.22751);
     Tue, 25 Nov 2014 14:45:07 -0800
Received: by (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;; s=mail;
    t=1416955506; bh=MIP9JX2pDQrcPyvexSAr/h5hxRiEsIeec0eg3Q5Iu44=;
Subject: TV-commercial starting tomorrow
X-PHP-Originating-Script: 1001:test.php
Message-Id: <>
Date: Tue, 25 Nov 2014 17:45:06 -0500 (EST)
From: (Vlad Dm)
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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 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 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.

Hello, all

You can make sure that your mailing list is fully opted-in and that you’re using SMTP authentication.

Also to test the mail score of your emails you can use a website like:

and then send a valid test - an exact email with a valid - subject, message body, full signatures and attachments.