mail server with opendkim


 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;;
      s=default; t=1419599592;

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

Building DNS Query for
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.

Puspharaj SelvarajSr.System engineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This should be a single string:
"v=DKIM1; k=rsa;" DRAGON_HERE "p=MIGfMA0GCSqG.... "

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Puspharaj SelvarajSr.System engineerAuthor Commented:
I found out the dragon and it's working
You are welcome.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Puspharaj SelvarajSr.System engineerAuthor Commented:
Another problem gheist

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

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

here is the show original snippet

Received: by with SMTP id g7csp2456670lbe;
        Sat, 27 Dec 2014 09:18:43 -0800 (PST)
X-Received: by with SMTP id gs4mr78406897pbb.23.1419700722461;
        Sat, 27 Dec 2014 09:18:42 -0800 (PST)
Return-Path: <>
Received: from ( [])
        by with ESMTPS id zk3si45720212pbc.212.2014.
        for <>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 27 Dec 2014 09:18:42 -0800 (PST)
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
       spf=pass ( domain of designates as permitted sender);
       dmarc=pass (p=NONE dis=NONE)
Received: by (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;;
      s=default; t=1419700635;
Date: Sat, 27 Dec 2014 20:17:14 +0300
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: <>

hooouty why its not working

You have weird MX record for that domain that serves no function at all.
Puspharaj SelvarajSr.System engineerAuthor Commented:
Yeah, that's what i'm thinking too. So i how to set one ?

I purchased a domain like this from godaddy

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

Whats should i do here.

Puspharaj SelvarajSr.System engineerAuthor Commented:
now i corrected it. set CNAME for it
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.