DKIM Signature Failed - body hash (bh) mismatched #1441
-
Hi, I have installed and configured Postal in 4 domains, great work congratulations !!! I use Postfix in my domains to relay mails into Postal, working good !! But I have problems with DKIM Signature in one domain where I use an old support ticket named: osticket ( php ), when that app send an email, dkim signature fail. GMail shows DKIM Fails I think is maybe it's because message is in base64 with blank lines. Note: If I send an email from terminal ssh, dkim signature pass ok Result on ondmarc.com
Result on dkimvalidator.com
Original Message
|
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 9 replies
-
the spacing certainly looks odd, I presume that message is being sent with SMTP to Postal? It would be good to see the message as it was sent from osticket in case there is some kind of conversion occurring which leads to the wrong hash being generated. |
Beta Was this translation helpful? Give feedback.
-
Hello, We can as well confirm that in some rare cases (~0.1%) our DKIM signature seems to be wrongly calculated by postal. Our Dmarc/DKIM is set to stricly reject non matching signatures. Our message we deliver to postal via api Our Dmarc reports also confirm exactly this problematic. Opening the mail which tries to be delievered inside of thunderbird/testing it against https://www.appmaildev.com/en/dkimfile also proofs that the dkim hash seems to be broken.. In this rare case also "redeliver" fails with this message: 550-5.7.26 Unauthenticated email from xxx.com is not accepted due to domain's 550-5.7.26 DMARC policy. Please contact the administrator of xxx.com domain 550-5.7.26 if this was a legitimate mail. Please visit 550-5.7.26 https://support.google.com/mail/answer/2451690 to learn about the 550 5.7.26 DMARC initiative. l188si4946828ybf.176 - gsmtp We were unable to reproduce the issue till now.. If @ignaciogutierrez can reproduce that its only in some cases failing (or maybe his domain has content which let us reproduce the issue), we may have a good starting point here.. |
Beta Was this translation helpful? Give feedback.
-
Yes the message is using smtp. I use Php Osticket as app, php use mail() function in Centos OS, I have postfix as a mail agent that send all mail to Postal. I will try to find a way to see the message as it was sent from osticket, maybe in Postfix are some tools, but the message do include a additional LF in each line. |
Beta Was this translation helpful? Give feedback.
-
Yes we can reproduce the issue, in fact all mail sent using OSticket has the problem |
Beta Was this translation helpful? Give feedback.
-
Any comment on it? Issue reproduce in some cases endlessly: if you try resend same email is will be signed incorrectly again and again, at same time changing from or body little bit fix issue for one email. @willpower232 set bug status please and this big issue actually that mail singed incorrectly even in 0.9% cases. |
Beta Was this translation helpful? Give feedback.
-
Not a discussion. Still an unsolved issue.. |
Beta Was this translation helpful? Give feedback.
-
Added |
Beta Was this translation helpful? Give feedback.
-
I've just rewritten the DKIM canonicalisation to directly reference the RFC. In the absence of any reproduction steps, I'm hoping this will be sufficient to remove these odd DKIM signing issues. |
Beta Was this translation helpful? Give feedback.
-
deploying your mentioned #1506 to check if the issues still persists |
Beta Was this translation helpful? Give feedback.
I've just rewritten the DKIM canonicalisation to directly reference the RFC. In the absence of any reproduction steps, I'm hoping this will be sufficient to remove these odd DKIM signing issues.