Solved

mail server with opendkim

Posted on 2014-12-26
8
324 Views
Last Modified: 2014-12-27
Hello,

 I have configured sendmail server for my vps, with godaddy dns. I'm trying to setup opendkim signature for my mail server, but it seems broken somewhere.

I'm checking emails with tools where it shows :

DKIM Information:

DKIM Signature

Message contains this DKIM Signature:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mymotors.in;
      s=default; t=1419599592;
      bh=g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=;
      h=From:Date:To:Subject;
      b=V+6WEIVgJo38yk37alsf3Zlj6LNAOz3zyuqUUL40JKnl24SXjw0ei5O1rYTVSTG8t
       1ky+EuGV00fnuAvkrdP+BpKZ0kldHvtSou0N56dVpjSjOVsA9PGcTWGdqvhqrHEQAM
       D78oaSZJ2JCStzb3b78zt8KKK2UqDbtVQwgmrZKk=


Signature Information:
v= Version:         1
a= Algorithm:       rsa-sha256
c= Method:          relaxed/simple
d= Domain:          mymotors.in
s= Selector:        default
q= Protocol:        
bh=                 g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs=
h= Signed Headers:  From:Date:To:Subject
b= Data:            V+6WEIVgJo38yk37alsf3Zlj6LNAOz3zyuqUUL40JKnl24SXjw0ei5O1rYTVSTG8t
       1ky+EuGV00fnuAvkrdP+BpKZ0kldHvtSou0N56dVpjSjOVsA9PGcTWGdqvhqrHEQAM
       D78oaSZJ2JCStzb3b78zt8KKK2UqDbtVQwgmrZKk=
Public Key DNS Lookup

Building DNS Query for default._domainkey.mymotors.in
Retrieved this publickey from DNS: "v=DKIM1; k=rsa; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDfFgBYtrGVWx0de96HGBr4sbwo/4RJcxTk3ySDPK3D46WA/gSkbmy74Sejg4HbQCfsdPzbhve/uSfnV0aaoSYm2YGRhJxT8cdbPc/hTRqmnagULwJ3hJqtdFbLfqW3TUVH+dY8l720hPJPeWEwBS/+n9BJaRNtPjveGYxbxA6uJQIDAQAB"
Validating Signature

result = invalid
Details: public key: missing p= tag

Please suggest how to cross-check and resolve this.

Thanks,
Puspharaj
0
Comment
Question by:Puspharaj Selvaraj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 40519087
This should be a single string:
"v=DKIM1; k=rsa;" DRAGON_HERE "p=MIGfMA0GCSqG.... "
0
 
LVL 2

Author Closing Comment

by:Puspharaj Selvaraj
ID: 40519577
I found out the dragon and it's working
0
 
LVL 62

Expert Comment

by:gheist
ID: 40519581
You are welcome.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 2

Author Comment

by:Puspharaj Selvaraj
ID: 40519710
Another problem gheist

I have setup spf, dkim, dmarc. from mymotors.in this is my server and everything.

but whenever i send a mail from mymotors.in to gmail, it arrives to spam folder.

here is the show original snippet


Delivered-To: s.puspharaj@gmail.com
Received: by 10.112.19.167 with SMTP id g7csp2456670lbe;
        Sat, 27 Dec 2014 09:18:43 -0800 (PST)
X-Received: by 10.68.106.68 with SMTP id gs4mr78406897pbb.23.1419700722461;
        Sat, 27 Dec 2014 09:18:42 -0800 (PST)
Return-Path: <ding@mymotors.in>
Received: from mymotors.in (mymotors.in. [192.161.183.113])
        by mx.google.com with ESMTPS id zk3si45720212pbc.212.2014.12.27.09.18.41
        for <s.puspharaj@gmail.com>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 27 Dec 2014 09:18:42 -0800 (PST)
Received-SPF: pass (google.com: domain of ding@mymotors.in designates 192.161.183.113 as permitted sender) client-ip=192.161.183.113;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of ding@mymotors.in designates 192.161.183.113 as permitted sender) smtp.mail=ding@mymotors.in;
       dkim=pass header.i=@mymotors.in;
       dmarc=pass (p=NONE dis=NONE) header.from=mymotors.in
Received: by mymotors.in (Postfix, from userid 502)
      id BEB3D1121884; Sat, 27 Dec 2014 20:17:14 +0300 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mymotors.in;
      s=default; t=1419700635;
      bh=SeFTGf1z2zSTCyK9apWkekTUH0SCiwu3lCVzQDXvNys=;
      h=Date:To:Subject:From;
      b=1DNUchcYVihgJqob+vLTksbmRLRCRyKibzLYJeDLx8bkx2ndxHWVKSA7+Q/w9lWDW
       vEKd4B48Fv8m91LqTQq1GSGen4gdZE0mO8knVS5+Sq27bef6frMP7rlKy+oHAL9IS/
       r/tsL0jsa88OG0367qR+Q3VlYjwbNFnBz5vgCNm8=
Date: Sat, 27 Dec 2014 20:17:14 +0300
To: s.puspharaj@gmail.com
Subject: while dkim if then else
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20141227171714.BEB3D1121884@mymotors.in>
From: ding@mymotors.in

hooouty why its not working

0
 
LVL 62

Expert Comment

by:gheist
ID: 40519757
You have weird MX record for that domain that serves no function at all.
0
 
LVL 2

Author Comment

by:Puspharaj Selvaraj
ID: 40519763
Yeah, that's what i'm thinking too. So i how to set one ?

I purchased a domain like this mymotors.in from godaddy

i tried to setup cname for mymotors.in to mail.mymotors.in , but refusing to list i hope.

Whats should i do here.

Thanks
0
 
LVL 2

Author Comment

by:Puspharaj Selvaraj
ID: 40519782
now i corrected it. set CNAME for it

mail.mymotors.in
0
 
LVL 62

Expert Comment

by:gheist
ID: 40519900
CNAME does not work with mail at all.

Use some online DNS checker to point you to mistakes. Your DKIM is fixed and my help ends there.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

739 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