0

I have a simple PHP script which generates a single email to a user on my site. For some reason, most messages are getting sent to user's spam folders. I set up a hotmail account to test this, and I'm now trying to analyse the header to check why it is getting added to the spam folder.

The header I am getting is included below. There doesn't appear to be any information relating to spam (i.e. spamassassin). I'm wondering if anyone can detect what the issue might be?

x-store-info:4r51+eLowCe79NzwdU2kRyU+pBy2R9QCj0/8P6fDMVumMo6iGJG5XQGQsGw4y+KC5jGdX6A7+/ZVHRw3c8psWXtc+cAfssqe5kw3LdG9RbC+kh049fg5aL5vFishJNonRedbn/JCR2Y=
Authentication-Results: hotmail.com; sender-id=pass (sender IP is 208.53.158.38) header.from=info@****.com; dkim=pass header.d=****.com; x-hmca=pass
X-SID-PRA: info@****.com
X-Message-Status: n:0:n
X-SID-Result: Pass
X-DKIM-Result: Pass
X-AUTH-Result: PASS
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MjtHRD0yO1NDTD02
X-Message-Info: M98loaK0Lo1tWPCbe4OE0UbDdVDXEICZZMNsQz6Wthy3jeg8lyZ+D9euQ2riH1WvmBV23btdBFelBmKMH/9LOMR9or7uhXgxLWPa0gAZnJxsZCwy+xyGPBu8cHXLoyzG0CR/fKSJcN+zLjJCNkZvew==
Received: from itchy.cirtexhosting.com ([208.53.158.38]) by COL0-MC2-F40.Col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
     Sun, 22 Jul 2012 16:56:31 -0700
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=****.com; s=default;
    h=Subject:To:From; bh=ZwVnoaT/AbcAu6/7wnV5p3ZMSyLI5Eg9h9kKTJTmUL4=;
    b=LTP74QdOU6Yt71wIr+J3PKWQUnGLUKRyU/Ps+ZM+OPgGOwfAeAvbPVemSl+dEh2u0VYtiuCdl5WvSK5zzQh+OV4KiBcy0xNj1vaRnBuUORgBY+SEIXu5TgLf3CbEZY0u;
Received: from itchy.cirtexhosting.com ([208.53.158.38]:26249 helo=localhost)
    by itchy.cirtexhosting.com with esmtpsa (TLSv1:AES256-SHA:256)
    (Exim 4.77)
    (envelope-from <info@****.com>)
    id 1St60G-0000kF-Oq
    for ****@hotmail.com; Sun, 22 Jul 2012 19:56:01 -0400
From: Marvelous Monthly Mix Up <info@****.com>
To: ****@hotmail.com
Subject: Welcome to the Marvelous Monthly Mix Up
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - itchy.cirtexhosting.com
X-AntiAbuse: Original Domain - hotmail.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - ****.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Return-Path: info@****.com
Message-ID: <COL0-MC2-F40nkB4ltF00b5209d@COL0-MC2-F40.Col0.hotmail.com>
X-OriginalArrivalTime: 22 Jul 2012 23:56:31.0807 (UTC) FILETIME=[9E28C4F0:01CD6865]
Nick
  • 4,304
  • 15
  • 69
  • 108
  • Everything looks dandy, apart from the PHP `X-AntiAbuse` headers which, statistically speaking, are a weak spam indicator, and the lack of a Message-Id header (Hotmail had to add one). Try to fix the message contents instead. – tripleee Jul 23 '12 at 06:53
  • @tripleee Thanks. Is there a way of adding a message-id header? The message contents on the test email I am sending is simply: subject: Test Subject, message body: Test message, so I don't think it's the content of the email. Running a test on the email using Brandon Checketts service returned: SpamAssassin Score: 1.274 Message is NOT marked as spam Points breakdown: 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS. I have asked my host to set up RDNS in case this helps. – Nick Jul 23 '12 at 11:24
  • @tripleee **UDPATE**: Adding an extra header "Nick" => "My Test" lead to mail being received OK in Hotmail and Yahoo, though not in GMail. I got this idea from [this thread](http://stackoverflow.com/questions/4875067/send-message-through-smtp-with-guarantee-id). Progress is being made – Nick Jul 23 '12 at 11:43

1 Answers1

1

The only way to truly prevent email from being marked as spam is to have your users create a filter for your email or to add you to their contacts list.

Included below are two resources that Google provides for emails that are marked as spam:

  1. Why messages are marked as Spam
  2. Legitimate mail is marked as spam

You can also try running an emailtest to check your content.

If you are using shared hosting then its possible that the IP address that your SMTP uses has been blacklisted. This can still happen if you're not on shared hosting but its more likely since you have a wide array of users from all areas.

"If it looks like a duck and quacks like a duck, then it's a duck." Try to make sure that you have good content quality and you should be able to do a search for assistance there.

Robert
  • 8,717
  • 2
  • 27
  • 34
  • Thanks. I used the test service (Brandon Checketts) to test the emails that are getting sent out and this returned the following: SpamAssassin Score: 1.274 Message is NOT marked as spam Points breakdown: 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS. I have asked my host to set up RDNS in case this helps. The test also suggested there was no DomainKeys signature or SPF record, even though I have set these up in cPanel. I don't want users to have to set up a filter, as the emails are mostly for new users. I don't think the IP address my SMTP uses is blacklisted. – Nick Jul 23 '12 at 11:20
  • **UDPATE**: Adding an extra header "Nick" => "My Test" lead to mail being received OK in Hotmail and Yahoo, though not in GMail. I got this idea from [this thread](http://stackoverflow.com/questions/4875067/send-message-through-smtp-with-guarantee-id). Progress is being made – Nick Jul 23 '12 at 11:42
  • I marked your answer as correct as it started me on a path that led in all sorts of weird and not so wonderful directions. In the end enabling SPF and DKIM on my server, and then checking my SpamAssassin score and taking steps to lower this fixed the issue. Thanks – Nick Jul 24 '12 at 22:23