c++ - Email header showing, dkim=hardfail (test mode) and dkim=permerror (bad sig) -


i trying write email client application c++ , openssl.. when checking , sending email through application gmail , yahoo both showing wrong in email header..

gmail showing > "dkim=hardfail (test mode) header.i=@".

yahoo showing > "dkim=permerror (bad sig)".

my email header gamil :

delivered-to: rajforever6@gmail.com received: 10.112.41.134 smtp id f6csp80981lbl;         tue, 26 mar 2013 02:25:15 -0700 (pdt) x-received: 10.68.59.199 smtp id b7mr22705642pbr.167.1364289914515;         tue, 26 mar 2013 02:25:14 -0700 (pdt) return-path: <no_feed@korcot.info> received: smtp.korcot.info ([103.18.168.250])         mx.google.com smtp id ak6si16720576pbd.344.2013.03.26.02.25.08;         tue, 26 mar 2013 02:25:14 -0700 (pdt) received-spf: softfail (google.com: domain of transitioning no_feed@korcot.info not designate 103.18.168.250 permitted sender) client-ip=103.18.168.250; authentication-results: mx.google.com;        spf=softfail (google.com: domain of transitioning no_feed@korcot.info not designate 103.18.168.250 permitted sender) smtp.mail=no_feed@korcot.info;        dkim=hardfail (test mode) header.i=@korcot.info date: tue, 26 mar 2013 02:25:14 -0700 (pdt) dkim-signature: v=1;      a=rsa-sha256;      s=mail;      d=korcot.info;      t=1364289917;      c=relaxed/relaxed;      h=from:to:subject:message-id:mime-version:content-type;      bh=q3k/t162lfkwtls4xby2fr1vt5pthpi6rnqm7i6p/vo=;      b=tgrc2nely/3ha0m14s4rxfvhonxqzfrtdad/x/0itvln6jswjixgqsx7worfaxb4k     ktxv+bbw6dkk+2avi2wrcyddup5wxjptvnjacjqts2+dtao3sl1re6tz3uhopa0pmrs     3qrzfxqqn8qczov63ujago6sl+o5atu3vbrymxg= from: "comfirm"<no_feed@korcot.info> to: "kuntal"<rajforever6@gmail.com> subject: key6gg6 ? message-id: <20030712040037.46341.5f8j@football.korcot.info> mime-version: 1.0 content-type: text/html 

my email header yahoo :

from comfirm wed mar 27 02:26:20 2013 x-apparently-to: raja_kuntal_majumder@yahoo.com via 106.10.150.84; tue, 26 mar 2013 11:26:20 -0700 return-path: <no_feed@korcot.info> received-spf: softfail (transitioning domain of korcot.info not designate 103.18.168.135 permitted sender)  bm5lcibyzwfkesbjcybkaw5uzxigcmvhzhkgsxmgzglubmvyihjlywr5ielz  igrpbm5lcibyzwfkesbjcybkaw5uzxigcmvhzhkgpybkb2uuiaewaqebaq-- x-ymailisg: v3yqap0wldt5n8clvc4zd9enb5ocumcfvdmbg1qujbck18hq  nhrhhgrhlvqfyo8loyt.rwjm8y1_i35xtte6pt.jxyevzxqtqqle66qlvndr  _rhg.ptze2awern.tmhi.aaics9wfkzozi9i3tytsszzmpbmlbwfu5hbv4qi  v3ko9lcamgece3w4mlsxgbkddddi_8r8afeb7jaukvn8i2vyrajqgeldl5xb  .lnzj0h_vms5hseahrpefe.o9w4a_ompcairia9ofdkc3zmzwybyntxcxngi  uktvtwaqyeuuvuyixrrglpuy8rfxralolp6s8rivcflyu1dee6bpa9kflva0  jtrm0xz3znl2wbzw1pnhskyz3x2shrzz8q7lfmueta7idziltklnqdzzbvje  nnoc3w3aymxkgzob25ord8q338f9774tfjmjeqtaqlbmmflow5gqopyneb0v  hkqmdyucqezpvfcrxbvsxzs2_lk7spwojx_wxkah5tbirxorouwvbkw9ehgc  yxqkotqaqpnc8ibxcft9cmvq2kxyxlrl7d0votpj.m8i0smy0mtvivkt6vci  fjuyscrugmxjoayqyuruu5mdm_bxqxrl1wfzehybqksymohzvtbbrpyescls  nhaspnkpus7wub712wai3amqtnv.knize8nwrm.hj9f9fb2njwcb.ivuqvkx  ujd9pq68b9u80wd8gtp5raiy7.b_0x6jhwk14fdwgh1yr7k1pb8a_daujh.g  d2f4rgy0cfbg3chmwc7o5agvodb79.pffkl8oozsupyqdsj5.kx5xlqjsfud  jcso1870gtty31apgvshrpdgotj_lq6v25bmacngs8atvybtjw9avy0mhtjw  rnt0_hzca6oxayzg0cccvq6cmd.unolit4pfewwd9zlo5bij4hd9n99qmbul  mggnyvrbc0f7dokmklihsi29k34ifnyh8z1qbekwtro4fxdba.vfc9cvwqpp  dvf8fbkputhc7qj63cszp98tcdzy2bq5yomrqedk85e141mndrchrwmjuplj  4e_uwqnmal17cgpzxujc3tad3nsdk9qh1ax.9k.jkrwsm4zgwscqoscpagoj  lioo3l3qscop9iq6xofuzm7dxw44z3wbhmthoogw_mgt488eclydr2pijt.f  1_bklnxgs2iuyh2tlyy69eske0y4ppgmabolasqbqkqz6xaofm8hdoib20zk  krnadxnlkmw.t6ruicapx3forkzvnkperz3na1kn x-originating-ip: [103.18.168.135] authentication-results: mta1360.mail.bf1.yahoo.com  from=korcot.info; domainkeys=neutral (no sig);  from=korcot.info; dkim=permerror (bad sig) received: 127.0.0.1  (helo smtp.korcot.info) (103.18.168.135)   mta1360.mail.bf1.yahoo.com smtp; tue, 26 mar 2013 11:26:19 -0700 dkim-signature: v=1;      a=rsa-sha256;      s=mail;      d=korcot.info;      t=1364322363;      c=relaxed/simple;      h=from:to:subject:mime-version:content-type;      bh=q3k/t162lfkwtls4xby2fr1vt5pthpi6rnqm7i6p/vo=;      b=thj4we+eoskthxgiupbgctlwticidfikgevlqvpbotviqtnw+k/dpr58kvz1haght     ktdactbeo2m3a17vxry1keqazhwu7pbwiw5twbfutiu9sbfbl88aqz2fxxi6bhqefnh     wyegg0meskg9j2jfenvg0waanj9gth5t/4nqvvc= from: "comfirm" <no_feed@korcot.info> to: "kuntal" <raja_kuntal_majumder@yahoo.com> subject: key6gg6 ? mime-version: 1.0 content-type: text/html content-length: 287 

my txt records in dns(godaddy.com) :

@ >>>> v=spf1 mx mx:smtp.korcot.info ip4:103.18.168.250 ~all

mail._domainkey >>>> k=rsa; t=y; p=migfma0gcsqgsib3dqebaquaa4gnadcbiqkbgqcjksxh3hb8urnz+aar7gfj30dcbs19i+89ja8ssldehsfftar9uziolxktd3hgpzhwgfcolkqg28ns/y3tt/wtvfxxrydyfribkjox6vbvmmvsmatsik1l2yqskttpehx6nzxgzrwdvvmlfzbzbbo3n+y0yntucousfnfycl/uawidaqab

_domainkey >>>> t=y; o=~;

really don't have knowledge why gmail , yahoo showing "dkim=hardfail (test mode) header.i=@" , "dkim=permerror (bad sig)", both header should "dkim=pass (ok)"..

so please give me advice.

please tell me should solve problem..

thanks...

you didn't mention whether using standard library calculate dkim signature, or have done own. recommend opendkim library use if aren't already.

another place test send message mail reflector @ sa-test@sendmail.net. may give more diagnostic information.

you should check header fields signed (from, to, subject, mime-version, , content-type) between sent , received. mailers "helpfully" rewrite these header fields, breaking signature in process. example, have signed no_feed@smtp.korcot.info , subsequently changed no_feed@korcot.info.


Comments