Solved

Stuck on a DKIM Issue

Posted on 2009-07-05
7
3,142 Views
Last Modified: 2013-12-18
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
0
Comment
Question by:Thomanji
  • 3
  • 2
7 Comments
 

Author Comment

by:Thomanji
ID: 24800535
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
0
 
LVL 1

Expert Comment

by:rackaid2
ID: 24818006
I see you have  t=1246689812  specified in your DKIM DNS txt record.  That means testing.  Remove it and see if you pass.  
0
 

Author Comment

by:Thomanji
ID: 24820445
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
0
 
LVL 1

Expert Comment

by:rackaid2
ID: 24825874
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.
0
 

Accepted Solution

by:
Thomanji earned 0 total points
ID: 24846738
Hi,
After some research I was told that this t= is added by google. However this still does not explain the test I get back.
It says in all DKIM tests "DomainKeys check:   neutral (message not signed)"

Here is the port25.com report:

This message is an automatic response from Port25's authentication verifier
service at verifier.port25.com.  The service allows email senders to perform
a simple check of various sender authentication mechanisms.  It is provided
free of charge, in the hope that it is useful to the email community.  While
it is not officially supported, we welcome any feedback you may have at
<verifier-feedback@port25.com>.

Thank you for using the verifier,

The Port25 Solutions, Inc. team

==========================================================
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'<4A5B300B.40107@dmni.com>'0D''0A'
    Date:'20'Mon,'20'13'20'Jul'20'2009'20'21:00:59'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=1247490066;'20'bh=JE9Gfi39GhBk165qkC2jLAl4IXkbD59SakU2kuy3Tt4=;'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:
    test'0D''0A'
    '0D''0A'
    --'20''0D''0A'
    _______________________________________________________'0D''0A'
    '20''20''20''20''20''20''20''20''20''20'DMNI'20'-'20'Global'20'Business'20'Strategies'0D''0A'
    -----------------------------------------------------'0D''0A'
    '20''20''20''20''20''20''20'Tel.:'20'(954)'20'376-4592'20'or'20'(954)'20'779-6314'0D''0A'
    E-Mail:'20'thomas@dmni.com'20'-'20'Internet:'20'http://www.dmni.com'0D''0A'
    _______________________________________________________'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 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"

----------------------------------------------------------
SpamAssassin check details:
----------------------------------------------------------
SpamAssassin v3.2.5 (2008-06-10)

Result:         ham  (-0.2 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
-0.0 SPF_PASS               SPF: sender matches SPF record
-2.6 BAYES_00               BODY: Bayesian spam probability is 0 to 1%
                            [score: 0.0000]
 2.2 TVD_SPACE_RATIO        BODY: TVD_SPACE_RATIO
 0.6 RCVD_IN_SORBS_WEB      RBL: SORBS: sender is a abuseable web server
                            [120.138.81.35 listed in dnsbl.sorbs.net]
-0.4 AWL                    AWL: From: address is in the auto white-list

==========================================================
Explanation of the possible results (adapted from
draft-kucherawy-sender-auth-header-04.txt):
==========================================================

"pass"
        the message passed the authentication test.

"fail"
        the message failed the authentication test.

"softfail"
        the message failed the authentication test, and the authentication
        method has either an explicit or implicit policy which doesn't require
        successful authentication of all messages from that domain.

"neutral"
        the authentication method completed without errors, but was unable
        to reach either a positive or a negative result about the message.

"temperror"
        a temporary (recoverable) error occurred attempting to authenticate
        the sender; either the process couldn't be completed locally, or
        there was a temporary failure retrieving data required for the
        authentication.  A later retry may produce a more final result.

"permerror"
        a permanent (unrecoverable) error occurred attempting to
        authenticate the sender; either the process couldn't be completed
        locally, or there was a permanent failure retrieving data required
        for the authentication.

==========================================================
Original Email
==========================================================

Return-Path: <thomas@dmni.com>
Received: from app2.dmni.com (174.143.94.154) by verifier.port25.com (PowerMTA(TM) v3.6a1) id hbcnak0hse8k for <check-auth@verifier.port25.com>; Mon, 13 Jul 2009 08:55:06 -0400 (envelope-from <thomas@dmni.com>)
Authentication-Results: verifier.port25.com smtp.mail=thomas@dmni.com; mfrom=pass;
Authentication-Results: verifier.port25.com header.From=thomas@dmni.com; domainkeys=neutral (message not signed);
Authentication-Results: verifier.port25.com header.d=dmni.com; dkim=pass (matches From: thomas@dmni.com);
Authentication-Results: verifier.port25.com header.From=thomas@dmni.com; pra=pass;
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 n6DD13Qg008038
      for <check-auth@verifier.port25.com>; Mon, 13 Jul 2009 09:01:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dmni.com; s=mail;
      t=1247490066; bh=JE9Gfi39GhBk165qkC2jLAl4IXkbD59SakU2kuy3Tt4=;
      h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:
       Content-Type:Content-Transfer-Encoding;
      b=d668xqR0fnl3kjXPMHzMqNS/DabjurYDQgEI8HACOB5hqGmZ/GpxR/067KUnGbCE0
       93kyqRVsZ7v5Sal8pBGkhlH1Er1lwY4N/jA2ep/t5q8NELlTRAjFFvaHZkiYMLJ
Message-ID: <4A5B300B.40107@dmni.com>
Date: Mon, 13 Jul 2009 21:00:59 +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: check-auth@verifier.port25.com
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now