40

I have a very strange problem with my emails being marked as spam by hotmail.
I just have configured Postfix + Dovecot on my server and all works perfectly. I can Send/Receive emails. I only have problems with hotmail accounts, I do not understand the reason, because I also configured:

  • SPF
  • DKIM
  • rDNS
  • My IP is not listed in any backlist, I used: mxtoolbox.com

Checking the headers I see that SPF and DKIM pass correctly. I have no problem with GMAIL, YAHOO, and other, but hotmail seems very strict.

The only problem I think... could be that my IP had no email traffic yet. I've sent very few emails to hotmail.

So, if postfix has no problem, what do I have to do to send emails to hotmail correctly? Because if the only reason is that I had no email traffic yet it means that my first newsletters will be tag as SPAM without no reason.

Advice?

(An example of email received as SPAM is below)

HEADERS:

x-store-info:4r51+eLowCe79NzwdU2kRwMf1FfZT+JrxVyutn/pLjoZiDggbl3J7aHGkQoNPd8ZB9iY77nKNhzoKkbFqj2wPQ4Ha91HUDyzG+BsQ2lzn+x/xsXGuDBWhAPIPgrYY3dCiWYILdpiCyM=
Authentication-Results: hotmail.com; sender-id=pass (sender IP is 66.85.140.94) header.from=info@example.net; dkim=pass header.d=example.net; x-hmca=pass
X-SID-PRA: info@example.net
X-SID-Result: Pass
X-DKIM-Result: Pass
X-AUTH-Result: PASS
X-Message-Status: n:n
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD00
X-Message-Info: M98loaK0Lo1j8FOgXol8UFVrP26QMSvVTQXke21+QxXu+DJ5ttCh6cM/eFA+HRgTBFdz52wvmszvfgxVXBCfExvqqIFxcJKaFap8dwTFrYmSiOTK6J40vAbrC+QeYPnMG9Hntes6IFH9T95bydckDQ==
Received: from mail.example.net ([66.85.140.94]) by SNT0-MC3-F15.Snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
     Sun, 30 Sep 2012 14:13:33 -0700
Received: from [192.168.1.2] (2-231-150-154.ip207.fastwebnet.it [2.231.150.154])
    by mail.example.net (Postfix) with ESMTPA id DD0A3401D9
    for <abcdef@hotmail.it>; Sun, 30 Sep 2012 21:13:31 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.net;
    s=mail; t=1349039612;
    bh=qCXqeVFYopgNSxSiqL3ANA5CfkeFw8AlGDFYh/ruUlg=;
    h=Date:From:To:Subject;
    b=NIYcYZJ4YitQHGus2ZQV4ErzN+hvFoDWi+M53eJXZSx3o0VamoA8PODMEZlWqvG29
     aYQK8DVW140wZ1tmHCvNCIe+KF/FVmRkxtD2aWGVK5OhVNuFv6ldRE7VUDhlPfOvaZ
     uUqp1QopHJsg8pGDTeifigb58xTa2V4AOac6WY4c=
Message-ID: <5068B5FA.7040704@example.net>
Date: Sun, 30 Sep 2012 23:13:30 +0200
From: Aziende Mandanti <info@example.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1
MIME-Version: 1.0
To: abcdef@hotmail.it
Subject: Registrazione avvenuta con successo
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Return-Path: info@example.net
X-OriginalArrivalTime: 30 Sep 2012 21:13:33.0410 (UTC) FILETIME=[72B24C20:01CD9F50]

Gentile Damiano,
la registrazione è avvenuta correttamente.
Saluti

example.net

The IP you see in the headers is correct, I only obfuscated the email addresses

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
Dail
  • 649
  • 1
  • 10
  • 13
  • 1
    Clarify what you mean by `reject my emails`. Are they being bounced with an NDR, not being received, sent to spam... or what? – HopelessN00b Oct 04 '12 at 05:46
  • @HopelessN00b you are right, I just edited my question. Please take a look. Thanks – Dail Oct 04 '12 at 05:52
  • 3
    Running an e-mail server *is* rocket science. We need data. Please show us an example message, including all headers, exactly as received in your Hotmail spam box. – Skyhawk Oct 04 '12 at 05:54
  • @MilesErickson you are right too, I just have added the headers of an email sent to hotmail.it that has been tag as SPAM – Dail Oct 04 '12 at 06:05
  • 1
    The domain you use is only a week old (registered 2012-09-26) . Some spamfilters initially give a low reputation score to newly registered domains ("day old bread"). Not sure if hotmail does this though.. Your headers look fine. – Gryphius Oct 04 '12 at 06:34
  • @Gryphius Please, could you also check the SPF record? I read that we also need to configure spf2.0/mfrom,pra, no? – Dail Oct 04 '12 at 06:38
  • 1
    your spf record "v=spf1 mx -all" looks fine to me. mx record point to a hostname with ip 66.85.140.94 which was sending this mail, so all good. – Gryphius Oct 04 '12 at 06:40
  • @Gryphius yes exactly but I also found this spf2.0/mfrom,pra do i have to add another TXT record for this? is this needed? thanks a lot – Dail Oct 04 '12 at 07:24
  • 7
    Rather than being "strict", Hotmail's junk filters are "erratic". A search for "hotmail blackhole" will turn up many, many discussions from frustrated, competent mail admins wanting to know why Hotmail accepts their mails and then doesn't even put it in the junk folder. If you own a Hotmail account, you will see plenty of obvious spam, identical to ones you have marked as junk before, in your inbox. – Ladadadada Oct 04 '12 at 09:07
  • 1
    The headers tell only part of the story. Have you considered that it might be the message body that is causing this to be classified as spam? – John Gardeniers Nov 29 '12 at 02:23
  • Something very strange about hotmail is that it accepts spam into the inbox if the senders name is already whitelisted. Eg, I still get many fishing attempts in my inbox simply because the senders name is ‘paypal’ – Sean Bradley May 09 '18 at 18:16

8 Answers8

54

Checking the headers I see that SPF and DKIM pass correctly. I have no problem with GMAIL, YAHOO, and other, but hotmail seems very strict.

This is correct. Hotmail / outlook.com are insanely strict for .. really no sensible reason at all. You have checked the obvious things:

  • SPF
  • DKIM
  • reverse DNS
  • My IP is not listed in any backlist, I used: mxtoolbox.com

The only thing left to do is manually file a request with Microsoft to get your URL listed in their safe senders. I really wish I was kidding, but even after triple checking all our mail settings (same as your above bulleted list), testing successfully on every other mail provider under the sun, etcetera, we had to file a manual Hotmail inclusion request in 2010 before email from Stack Overflow, Super User, Server Fault et al would arrive to Hotmail / outlook.com users.

As you can see on Microsoft's Postmaster Troubleshooting page:

IPs not previously used to send email typically don’t have any reputation built up in our systems. As a result, emails from new IPs are more likely to experience deliverability issues. Once the IP has built a reputation for not sending spam, Outlook will typically allow for a better email delivery experience.

The Improving E-mail Deliverability into Windows Live Hotmail (pdf) document describes this troubleshooting for the "Your e-mail is being delivered to the Junk e-mail Folder" scenario:

  • Too many recipients reported your previous e-mails as spam
  • Too much of your mail is sent to invalid or inactive e-mail addresses
  • Your SenderID record is incorrect or missing

None of which applies here to a new mailer anyway, and SenderID / SPF was already checked as valid.

So this begs the question, how exactly do you get positive email reputation when all your emails go into the spam folder on day zero?

The only way we could get it to work is to .. file for a manual inclusion request.

If your email complies with our policies and guidelines and you are still experiencing email delivery problems that are not addressed in the FAQ below, click here to contact support.

Once I did this I got a deliverability email which looks automated, but that's good in this case:

This mail is to confirm that the IP(s) listed below are being investigated by our automated system.

Please note that your ticket number is in the subject line of this mail.

192.168.1.1

Note: Errors are unlikely, however, if an error is indicated, please resubmit the specific IP or IP range.

Thank you,
Hotmail Deliverability Support Service

Additionally, Microsoft recommends that

in addition, to adding your new IPs to existing Sender ID records, don’t forget to update your Junk Email Reporting Program (JMRP) account with the new IPs as well. To update or set up a JMRP account, click here.

Jeff Atwood
  • 12,994
  • 20
  • 74
  • 92
  • 4
    Will the IPs that built up prior "reputation" with the Microsoft Postmaster, as IPv4's, need to go around again if they move to IPv6 addresses? Microsoft will be validating more, in general, as IPv6 address usage increases. Something to look forward to... – Ellie Kesselman Nov 28 '12 at 08:27
  • 1
    I guess you could build up a reputation by sending e-mails to hotmail addresses and then manually marking them as not spam (or however that works). The only problem is knowing when you have enough reputation... – Daan Wilmer Nov 28 '12 at 12:20
  • Thanks for the post Jeff... Unfortunately that long form isn't functioning at the moment: I hit "Submit" and I get a message with an empty ticket number and a promise to receive a response within 24 hours. Unsurprisingly nothing happens within 24 hours, or 48, or 96 hours. Did the same today, again an empty ticket number. – mojuba Mar 05 '13 at 23:28
  • 2
    all links to col002.mail.live.com seem to be broken. – augustin Mar 01 '14 at 02:03
  • Note that it may take multiple requests. The first time I submitted the form, Delivery Support said that my IP address was not eligible for mitigation and sent canned recommendations for sending bulk mail. I then emailed msn-snds@microsoft.com and postmaster@microsoft.com, and explained that Delivery Support wasn't helping. They asked for the original SRX Id, and finally said that SmartScreen was responsible and that my IP was eligible for mitigation. – cwarden Nov 29 '17 at 19:02
12

I don't see anything wrong with your headers, or anything obvious that you're doing wrong, but I would like to point out that, yes, hotmail (as well as live and msn and outlook webmail) are very strict, and tend to classify a lot of mass-mailings as spam, even when they shouldn't be.

A Google search on hotmail emails marked as spam turns up scores of similar questions with people having problems sending newsletters, registration confirmation emails and so on to Microsoft webmail domains, so it's probably nothing that you're doing wrong, but you need to put a lot of work into getting a mass mailing or automated mailing to pass through the spam filters Microsoft has in place for their webmail.

The place I'd start looking for "what to do next" would be the Microsoft webmail postmaster policies, practices and guidelines page.

They have 5 major guidelines you should make sure you're in compliance with (including American legislation you might not be aware of, and yes, it applies even to hotmail.it), some free reuptation management tools you might want to look at, as well as a way to contact "Hotmail Deliverability Support" if you're still having problems after complying with their guidelines.

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
  • it is unbelievable, If someone follow the rules, do all the things correctly (SEND EMAILS TO A REGISTERED LIST) but nothing..... SPAM. I try to read the policies again. But do you think I should install other milter? maybe DomainsKeys (I already have DKIM) – Dail Oct 04 '12 at 06:28
  • @Dail I doubt that would help. I'd try contacting the `Hotmail Deliverability Support` first. – HopelessN00b Oct 04 '12 at 06:30
  • could you also check if there are problem with my DNS ? Maybe SPF? maybe do i need to add spf2.0/mfrom,pra ? Thanks – Dail Oct 04 '12 at 06:40
5

I suspect the problem here is a new ip has gone from sending low volumes of mail to high in a short space of time

https://senderscore.org/lookup.php?lookup=66.85.140.94&ipLookup=Go

Hotmail and others use return path reputation quite heavily

It's also worth signing up for SNDS at hotmail (presuming you haven't already)

sjbotha
  • 305
  • 4
  • 8
Matt B
  • 51
  • 1
3

Jeff Atwood is correct re: Having to Sender-Score yourself first. I have been there more than once. This should be the default way to go, and is generally faster than getting white-listed by Hotmail's investigation team. You can sender-score yourself by simply starting to deliver e-mail to other major ISP's, and your ratings will eventually show up on SenderScore.org (usually takes a couple weeks) at which point you can re-try Hotmail. In my personal experience this happens in 50% of the perfectly configured and authenticated fresh IP/Domain trying to inbox with a naked "Hello world" message. That means that you might get lucky and your fresh setup will Inbox hotmail/outlook like a charm. I would go out on a limb guessing that this "luck" factor could be related to the IP-Block provider/owner's reputation?

However, the following article may indicate a different approach - Email Delivery Report 2012

[excerpt from the Hotmail-specific part of the article] • Existing domain reputation will impact delivery, for better or worse, only when authenticated with Sender ID. • Emails not signed with Sender ID will be judged on IP reputation and content.

I could be misinterpreting this but I think it means you may have a better luck inboxing Hotmail on Day-1 if you don't setup Sender-ID authentication, rather than authenticating your domain/IPs prior to building some reputation metrics.

Jizzzz
  • 31
  • 1
3

After you checked all possibilities and have perfect configuration according to Microsoft policies and Outlook.com Enhanced Deliverability white paper with SPF, DKIM, Reverse DNS and all world e-mail systems trust you already...

...it's time for you to reach out to internet God - Microsoft - directly under special form. Microsoft will add your domain and IP address to the whitelist. It sounds unbelievable but it's true.

⚡⚡⚡ Sender Information for Outlook.com Delivery ⚡⚡⚡

Screen for all unbelievers to start believe:

form screenshot

P.S. It even works with Chrome, not only IE!

s3m3n
  • 131
  • 4
2

I was experiencing this issue for a while, all the DKIM/SPF/DMARC/etc validators I could find all gave everything a pass. However, by random chance I stumbled upon the solution - make SHA256 keys! So the command to generate the key would be something like opendkim-genkey -r h rsa256 -d domain.name -s mail. Once the new keys were installed and the updated DNS TXT record had propagated, hotmail was happy to receive mails from my domain.

Spoon
  • 21
  • 1
1

I would comment, but I don't have enough rep.

Here's a link to Hotmail's current (2016-06-01) Email policies page where you can sign up for Junk Email Reporting Program (JMRP) and Smart Network Data Services (SNDS) accounts: https://mail.live.com/mail/policies.aspx

Eccentropy
  • 153
  • 1
  • 4
1

However, by random chance I stumbled upon the solution - make SHA256 keys! So the command to generate the key would be something like opendkim-genkey -r h rsa256 -d domain.name -s mail. Once the new keys were installed and the updated DNS TXT record had propagated, hotmail was happy to receive mails from my domain.

I am using Plesk Onyx which generates SHA256 keys for DKIM by default, which I checked using http://dkimvalidator.com. Emails we send to Hotmail continue to be placed in the Junk/Spam folder. Checking the headers of those emails, we see that SPF, DKIM, and DMARC are all "pass". I am told by Microsoft that the culprit is their SmartScreen filter, which is actually very dumb and frustrating. The way out appears to be to start using the IP for live emails, and then notify users to "Add Sender to Safe Senders List" in the Outlook UI. Over time, SmartScreen will start allowing emails into inboxes. Thanks Microsoft for such a dumb system! (And yes, we are already signed up on the SNDS and JMRP.)