Skip Menu |

This queue is for tickets about the Mail-DKIM CPAN distribution.

Report information
The Basics
Id: 129066
Status: resolved
Priority: 0/
Queue: Mail-DKIM

People
Owner: mbradshaw [...] cpan.org
Requestors: ikeda [...] conversion.co.jp
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.54
Fixed in: 0.55



Subject: Mail::DKIM::ARC::Signer cannot find SrvId
From: ikeda [...] conversion.co.jp
If Authentication-Results field is as below: Show quoted text
> Authentication-Results: xxxx.xxx.xxxx-xxxxxx.fr (amavisd-new); > dkim=pass (1024-bit key) header.d=ies.univ-montp2.fr
Mail::DKIM::ARC::Signer cannot find SrvId in the field, and following warning issued: Show quoted text
> Use of uninitialized value $ardom in lc at /usr/share/perl5/vendor_perl/Mail/DKIM/ARC/Signer.pm line 255.
See also: https://github.com/sympa-community/sympa/issues/575
Hi ikedas, Thanks for the report, and the suggested fix to the regex in the linked github issue. Annoyingly, the ABNF for the Authentication-Results header is as follows authres-header = "Authentication-Results:" [CFWS] authserv-id [ CFWS authres-version ] ( no-result / 1*resinfo ) [CFWS] CRLF Meaning that it is legal for the comment to also appear before the authserv-id. Although I have never seen an instance of this in the wild. A fix has been released to github which uses Mail::AuthenticationResults to parse out the authserv-id, this should cover all valid headers. https://github.com/marcbradshaw/mail-dkim Let me know if this works for you and I'll release it to CPAN. Bug also filed with arc_test_suite which should help catch this in other arc implementations. https://github.com/ValiMail/arc_test_suite/issues/25
Hi MBRADSHAW, On 2019-4月-08 月 07:00:29, MBRADSHAW wrote: Show quoted text
> Hi ikedas, > > Thanks for the report, and the suggested fix to the regex in the > linked github issue. > > Annoyingly, the ABNF for the Authentication-Results header is as > follows > > authres-header = "Authentication-Results:" [CFWS] authserv-id > [ CFWS authres-version ] > ( no-result / 1*resinfo ) [CFWS] CRLF > > Meaning that it is legal for the comment to also appear before the > authserv-id. Although I have never seen an instance of this in the > wild. > > A fix has been released to github which uses > Mail::AuthenticationResults to parse out the authserv-id, this should > cover all valid headers. > > https://github.com/marcbradshaw/mail-dkim > > Let me know if this works for you and I'll release it to CPAN.
Sympa also parses A-R in the other place. I fixed it by doing like: $ardom = MIME::Field::ParamVal->parse("Value of A-R")->('_'); Show quoted text
> Bug also filed with arc_test_suite which should help catch this in > other arc implementations. > https://github.com/ValiMail/arc_test_suite/issues/25
Thanks!
Hi again, On 2019-4月-08 月 07:10:59, ikeda@conversion.co.jp wrote: Show quoted text
> Hi MBRADSHAW, > > On 2019-4月-08 月 07:00:29, MBRADSHAW wrote:
> > Hi ikedas, > > > > Thanks for the report, and the suggested fix to the regex in the > > linked github issue. > > > > Annoyingly, the ABNF for the Authentication-Results header is as > > follows > > > > authres-header = "Authentication-Results:" [CFWS] authserv-id > > [ CFWS authres-version ] > > ( no-result / 1*resinfo ) [CFWS] CRLF > > > > Meaning that it is legal for the comment to also appear before the > > authserv-id. Although I have never seen an instance of this in the > > wild. > > > > A fix has been released to github which uses > > Mail::AuthenticationResults to parse out the authserv-id, this should > > cover all valid headers. > > > > https://github.com/marcbradshaw/mail-dkim > > > > Let me know if this works for you and I'll release it to CPAN.
I was hasty. I ask Sympa folks to check it. Thanks again!
Hi MBRADSHAW, It looks working fine. Thanks for quick response! On 2019-4月-08 月 07:00:29, MBRADSHAW wrote: Show quoted text
> Hi ikedas, > > Thanks for the report, and the suggested fix to the regex in the > linked github issue. > > Annoyingly, the ABNF for the Authentication-Results header is as > follows > > authres-header = "Authentication-Results:" [CFWS] authserv-id > [ CFWS authres-version ] > ( no-result / 1*resinfo ) [CFWS] CRLF > > Meaning that it is legal for the comment to also appear before the > authserv-id. Although I have never seen an instance of this in the > wild. > > A fix has been released to github which uses > Mail::AuthenticationResults to parse out the authserv-id, this should > cover all valid headers. > > https://github.com/marcbradshaw/mail-dkim > > Let me know if this works for you and I'll release it to CPAN. > > > > Bug also filed with arc_test_suite which should help catch this in > other arc implementations. > https://github.com/ValiMail/arc_test_suite/issues/25