Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm developping a service which lets users send our content via email to their friends. The problem is that those emails often ended up as Spam. So I went through all the stuff to make my server send nice emails with correct headers (SPF, DKIM, rDNS, etc...).

Now the emails have clean headers, and are being received fine by hotmail or yahoo, but are still being marked as spam in Gmail ! I am going completely crazy over this, since I can't figure out what I am doing wrong. The welcome message when a user subscribes has almost the same template, and yet is not considered as Spam...

Here is a sample of the headers (where I've hidden IPs and the domain):

Received: by with SMTP id oz3csp61408pbc;
        Thu, 17 Jan 2013 05:07:39 -0800 (PST)
X-Received: by with SMTP id bf4mr8314430wjc.38.1358428059148;
        Thu, 17 Jan 2013 05:07:39 -0800 (PST)
Return-Path: <>
Received: from ( [37.XX.XX.150])
        by with ESMTPS id wp9si543337wjb.22.2013.
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Thu, 17 Jan 2013 05:07:39 -0800 (PST)
Received-SPF: pass ( domain of designates 37.XX.XX.150 as permitted sender) client-ip=37.XX.XX.150;
       spf=pass ( domain of designates 37.XX.XX.150 as permitted sender)
Received: (qmail 22048 invoked by uid 502); 17 Jan 2013 14:07:38 +0100
Date: 17 Jan 2013 14:07:38 +0100
Message-ID: <>
Subject: Carlos t'as envoyé un Cut
X-PHP-Originating-Script: 10000:functions.php
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="Multipart_NextPart-9004e0d0de3def8e547ef1c1218c9aab"
From: Carlos sur Service <>
Reply-To: Carlos <>

Any ideas ? Thanks a lot in advance !


I use 2 images in the html, 2 links which points to, 2 social links and a bit of text. I used a template found on

share|improve this question
Gmail currently has a reason it spamboxes messages - when you open the email it says why at the top. What reason does it give you? If you have one like "similar content" then it can probably be fixed. If you have one like "emails from are known to be spam" then you need to worry about more than just the content of your messages. – Jay Jan 17 '13 at 14:16
It is the "Similar content as ..." message. So how can I find what is causing it, because all the online tests I've done gave me a good rating... And it is odd because I do receive the welcome message in the inbox, which has very similar content... I've made different versions with less images, more text, but in vain... Thanks for your help ! – Charleshaa Jan 17 '13 at 14:22
not sure if this is the cause for being flagged as spam by gmail but your subject header looks like it isn't properly encoded for non-ASCII characters. see – Gryphius Jan 18 '13 at 15:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.