Link to home
Start Free TrialLog in
Avatar of Thomas
ThomasFlag for Malaysia

asked on

Stuck on a DKIM Issue

Hi,

I an effort to setup a good mail service I have implemented DKIM in addition to spf.
All  seemed to work fine but I have some issues with the signature and hope that maybe someone has the same issue and resolved it.
I did make lots of research and several people did indicate they had the issue but for some reason there is no definitive answer that assists me to resolve this on my system.
I run Linux RHEL 5 64bit - Sendmail - DKIM-filter

If I send a email to google it indicates "dkim=neutral (no key) header.i=@dmni.com" I tried hard but I do not understand this. I do have a private and public key and all should be there.
I do start the filter with:

dkim-filter -l -p inet:8891@localhost -b sv -c simple -d dmni.com -k /var/db/domainkeys/mail.key.pem -s mail -R -u dkim

the key folder and file us assigned to the user dkim
The dns has the entry:

mail._domainkey.dmni.com.  300  IN  TXT  v=DKIM1; g=*; k=rsa; p=MHww ... AB

Here is what google says and see below this the test at check-auth@verifier.port25.com

Delivered-To: thomanji@gmail.com
Received: by 10.220.92.139 with SMTP id r11cs61468vcm;
        Fri, 3 Jul 2009 23:43:23 -0700 (PDT)
Received: by 10.90.101.7 with SMTP id y7mr775242agb.5.1246689803600;
        Fri, 03 Jul 2009 23:43:23 -0700 (PDT)
Return-Path: <thomas@dmni.com>
Received: from app2.dmni.com (app2.dmni.com [174.143.94.154])
        by mx.google.com with ESMTP id 5si10643557gxk.91.2009.07.03.23.43.22;
        Fri, 03 Jul 2009 23:43:22 -0700 (PDT)
Received-SPF: pass (google.com: domain of thomas@dmni.com designates 174.143.94.154 as permitted sender) client-ip=174.143.94.154;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of thomas@dmni.com designates 174.143.94.154 as permitted sender) smtp.mail=thomas@dmni.com; dkim=neutral (no key) header.i=@dmni.com
Received: from [127.0.0.1] ([120.138.81.35])
      (authenticated bits=0)
      by app2.dmni.com (8.13.8/8.13.8) with ESMTP id n646hTG4028468
      for <thomanji@gmail.com>; Sat, 4 Jul 2009 02:43:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dmni.com; s=mail;
      t=1246689812; bh=VYvGzrJLAW0zN632OqvdJBG0N7/3BUpw9XazPKuv+wE=;
      h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:
       Content-Type:Content-Transfer-Encoding;
      b=oidJm99ubX8ljlG2e+Sla9IP5X3ziSpIYC03irrtyd2SRL0K2gbkgYaiFPSUr3fUq
       SRuzSUl+Y98RpeRFQYwM2iEu7NkhbO+v2b3WLebaLNpNigbx+8SCydR0o41iUVW
Message-ID: <4A4EFA05.9020904@dmni.com>
Date: Sat, 04 Jul 2009 14:43:17 +0800
From: Thomas Bernthaler <thomas@dmni.com>
Reply-To: thomas@dmni.com
Organization: DMNI
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: thomanji@gmail.com
Subject: test new
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


check-auth@verifier.port25.com test:

==========================================================
Summary of Results
==========================================================
SPF check:          pass
DomainKeys check:   neutral
DKIM check:         pass
Sender-ID check:    pass
SpamAssassin check: ham

==========================================================
Details:
==========================================================

HELO hostname:  app2.dmni.com
Source IP:      174.143.94.154
mail-from:      thomas@dmni.com

----------------------------------------------------------
SPF check details:
----------------------------------------------------------
Result:         pass
ID(s) verified: smtp.mail=thomas@dmni.com
DNS record(s):
    dmni.com. 300 IN TXT "v=spf1 ip4:174.143.94.154 a:n2b.bullet.mail.aue.yahoo.com a:n1b.bullet.mail.aue.yahoo.com a:smtp1.tnz.mail.vip.aue.yahoo.com a:send.tnz.yahoo.com -all"

----------------------------------------------------------
DomainKeys check details:
----------------------------------------------------------
Result:         neutral (message not signed)
ID(s) verified: header.From=thomas@dmni.com
DNS record(s):

----------------------------------------------------------
DKIM check details:
----------------------------------------------------------
Result:         pass (matches From: thomas@dmni.com)
ID(s) verified: header.d=dmni.com
Canonicalized Headers:
    Message-ID:'20'<4A5171B8.7080102@dmni.com>'0D''0A'
    Date:'20'Mon,'20'06'20'Jul'20'2009'20'11:38:32'20'+0800'0D''0A'
    From:'20'Thomas'20'Bernthaler'20'<thomas@dmni.com>'0D''0A'
    Reply-To:'20'thomas@dmni.com'0D''0A'
    MIME-Version:'20'1.0'0D''0A'
    To:'20'check-auth@verifier.port25.com'0D''0A'
    Subject:'20'test'0D''0A'
    Content-Type:'20'text/plain;'20'charset=ISO-8859-1;'20'format=flowed'0D''0A'
    Content-Transfer-Encoding:'20'7bit'0D''0A'
    DKIM-Signature:'20'v=1;'20'a=rsa-sha256;'20'c=simple/simple;'20'd=dmni.com;'20's=mail;'0D''0A'
    '09't=1246851522;'20'bh=eia2az/UdYM0rrrQdlzT2J7mtRFp+U90A+31+SxljOA=;'0D''0A'
    '09'h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:'0D''0A'
    '09''20'Content-Type:Content-Transfer-Encoding;'0D''0A'
    '09'b=

Canonicalized Body:
    This'20'is'20'a'20'DKIM'20'test'0D''0A'
   

DNS record(s):
    mail._domainkey.dmni.com. 300 IN TXT "v=DKIM1; g=*; k=rsa; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhALhSt5fje4cHHR2f6r61Hx8uup/qbnJo MGIYnvXiH1moNDtBt2QaW/uDtoRfzQgKG9X9Kv3ZnuSeHwvWMW17UgpK3uHk/OrB 9AM/+YSfzjL3dj2no7iR+JBpx7wQ0R17kwIDAQAB"

NOTE: DKIM checking has been performed based on the latest DKIM specs
(RFC 4871 or draft-ietf-dkim-base-10) and verification may fail for
older versions.  If you are using Port25's PowerMTA, you need to use
version 3.2r11 or later to get a compatible version of DKIM.

----------------------------------------------------------
Sender-ID check details:
----------------------------------------------------------
Result:         pass
ID(s) verified: header.From=thomas@dmni.com
DNS record(s):
    dmni.com. 300 IN TXT "v=spf1 ip4:174.143.94.154 -all"




Did anyone actually resolve this and can let me know what i do wrong. I am on this much to long and have reached the end of my ideas what else to do to get this done.

Thank you all for the assistance.

Best wishes,
Thom
Avatar of Thomas
Thomas
Flag of Malaysia image

ASKER

Hi,

Thank you very much, I appreciate the assistance.
I understand that this is a very specific issue and maybe not many people use DKIM at this time.
Lets see if anyone can help.

All the best,
thomas
I see you have  t=1246689812  specified in your DKIM DNS txt record.  That means testing.  Remove it and see if you pass.  
Avatar of Thomas

ASKER

Hi Rackaid2,

Thank you very much for your answer.
However i do have in my DNS record the following:

mail._domainkey.dmni.com.  300  IN  TXT  v=DKIM1; g=*; k=rsa; p=MHww ... AB

No T, but now that you mentioned this I see that in google it has this in. I guess not I have another issues that does not make sense to me.

Also further down where you see the test with check-auth@verifier.port25.com, it shows:

 DKIM-Signature:'20'v=1;'20'a=rsa-sha256;'20'c=simple/simple;'20'd=dmni.com;'20's=mail;'0D''0A'
    '09't=1246851522;'20'bh=eia2az/UdYM0rrrQdlzT2J7mtRFp+U90A+31+SxljOA=;'0D''0A'
    '09'h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:'0D''0A'
    '09''20'Content-Type:Content-Transfer-Encoding;'0D''0A'
    '09'b=

which is the actual key and it does not have the test tag in there.

Best wishes,
Thom
I would try sending to Gmail again.  If you changed your DNS record during testing, Gmail and similar providers often cache DNS for a period.

Port25 shows your DKIM working so perhaps this was a temp issue with your DNS.
ASKER CERTIFIED SOLUTION
Avatar of Thomas
Thomas
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial