Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am facing an issue with the DKIM setup. We are sending newsletters which are going to spam in gmail. The dkim & spf passes. Even the reverse dns is setup properly. Below is a copy of mail headers that I see in gmail.

Delivered-To: xyz@gmail.com
Received: by with SMTP id j20csp27976lbh;
        Tue, 2 Jul 2013 10:28:18 -0700 (PDT)
X-Received: by with SMTP id p7mr22069045igb.24.1372786097413;
        Tue, 02 Jul 2013 10:28:17 -0700 (PDT)
Return-Path: <abc@mydomain.com>
Received: from mydomain.com (newsletter.mydomain.com. [])
        by mx.google.com with ESMTP id gu10si1702677icb.68.2013.
        for <xyz@gmail.com>;
        Tue, 02 Jul 2013 10:28:17 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of abc@mydomain.com designates as permitted sender) client-ip=;
Authentication-Results: mx.google.com;
  spf=pass (google.com: best guess record for domain of abc@mydomain.com designates as permitted sender) 
smtp.mail=abc@mydomain.com;  dkim=pass header.i=@mydomain.com
Received: from mydomain.com (mydomain.com [])
   by mydomain.com (Postfix) with ESMTP id 4A47318970;
   Tue,  2 Jul 2013 17:30:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mydomain.com;
   s=default; t=1372786238;
Received: (from abc@localhost)
   by mydomain.com (8.14.5/8.14.5/Submit) id r62HUcoh028894;
   Tue, 2 Jul 2013 17:30:38 GMT
Date: Tue, 2 Jul 2013 17:30:38 GMT
Message-Id: <201307021730.r62HUcoh028894@mydomain.com>
To: xyz@gmail.com
Subject: mydomain | Subject Details
MIME-Version: 1.0
From: mydomain <abc@mydomain.com>
Content-Type: multipart/alternative;boundary=np51d30e1a36dd3

I Think so the Received: (from abc@localhost) is causing the issue.

What I need to know how to resolve it. Instead of localhost it should use mydomain.com This is my first time setting up such kind of server. I am using opendkim with postfix on linux server.

share|improve this question
Why do you suspect the Received: header? What about people marking your newsletters as spam or how you handle bounces and unsubscribe requests? –  Ladadadada Jul 2 '13 at 18:26
A link coded has been created for unsubscribing which directly unscribes the users. And haven't been handling the bounces. It directly goes to the root mail logs. Even that issue is pending. Which preferably I would like the bounces to go to abc@mydomain.com –  Aazim Parkar Jul 2 '13 at 18:39
You should make unsubscribing bounces your top priority. In my experience, that has made the biggest difference to the reputation of the mail IP addresses I control. Yours isn't terrible but it could be 99 if you start handling bounces properly. The other reputation services I checked list your IP as neutral. –  Ladadadada Jul 2 '13 at 18:49
Have taken care of the bounces. However my this issue is still pending. –  Aazim Parkar Jul 3 '13 at 11:42

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.