Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm new here and I'm sure this question has been thrown around a lot but I just couldn't find a solution. I have a networking website I've setup and we need to send notification mails to our members depending on activity related to their profiles(messages, comments etc).

We are hosting the site on Centos5.6 with VirtualMin and are using Postfix as our MTA. We also use google apps for email on the site. Heres the problem, the mails go through for some gmail users but more often than not, they end up in gmail,hotmail and yahoo spam.

We've setup the appropriate SPF codes on the server, DKIM and rDNS works fine.

v=spf1 ip4:xx.xx.xx.xx a mx ~all

Below is a sample email that goes directly into gmail spam. I've replaced the actual values with dummy text (Ip, Domain etc)

Received: by with SMTP id s5cs223598wfo; Fri, 15 Apr 2011 08:38:22 -0700 (PDT)
Received: by with SMTP id 34mr1202961ano.165.1302881901970; Fri, 15 Apr 2011 08:38:21 -0700 (PDT)
Received: from ( [xx.xx.xx.xx]) by with ESMTP id c12si6403722anc.63.2011.; Fri, 15 Apr 2011 08:38:20 -0700 (PDT)
Received-SPF: pass ( domain of designates xx.xx.xx.xx as permitted sender) client-ip=xx.xx.xx.xx;
Authentication-Results:; spf=pass ( domain of designates xx.xx.xx.xx as permitted sender); dkim=pass (test mode)
Received: by (Postfix, from userid 48)
id 3549968563; Fri, 15 Apr 2011 21:08:18 +0530 (IST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple;;
s=domainxyz-mail; t=1302881898;
sZCC4oFDUH6e5Qd+jgfEdjBs2ax3inTV7FIz4kc0jXxNDEdrAw hik3IBwjrk1LLcep
To: Zahir Gmail 
Subject: Retrieve your login information
MIME-Version: 1.0
Content-type: multipart/alternative; charset=iso-8859-1;boundary=EmailBoundary.568d2e34be8b984d6bdc427f9 f43cc7c
Date: Fri, 15 Apr 2011 21:08:18 +0530 (IST)

Content-Type: text/plain; charset="ISO-8859-1"

Hi Zahir Gmail,

You are receiving this email because we received a password reset request on domainxyz for your account. If you did not request for your password to be reset, please ignore this mail. 

The following are your account details :
Username : zahirgmail
Personalized URL :

To reset your password, click here - 

We can't wait to see you on domainxyz

All tails wagging!

The Team

Note : You are receiving this system generated email because you were registered on If you haven't signed up with us, please report this mail by forwarding it to Inconvenience regretted. If you are a member, you can log onto your Notifications Page to change the notifications you receive from If you wish to change the email address on which you receive there notifications, please visit your Email Settings page. Please do not reply to this email, it will go nowhere. is a Social Networking website and is brought to you by domainxyz India Pvt Ltd. To know more about us, Click Here. If you wish to explore Business(Adverting, Marketing or Partnership) opportunities with us, please email us at

Content-Type: text/html; charset="ISO-8859-1"


Would really appreciate any help we can get on this.

share|improve this question

1 Answer 1

If exactly THIS is a real mail then the mail is not correctly formed.

  1. The HTML part is missing
  2. the final MIME boundary is missing
  3. the boundary defined in the header is not the boundary in the body (there is a space in front of f43cc7c)
  4. The Message-Id is missing
  5. The From: is missing the local part
  6. The To: is missing a complete mail address

And the last content line telling something about "opportunities", "click here" and "please email" is a strong indicator of spam (buzzwords).

By the way I'm wondering why you include Google in your SPF records? You are sending from your own server.

The best way would be to pipe this mail through SpamAssassin and look at the scores.

Also I really recommend reading RFC 3834 for automatically generated mails.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.