Subject: | "Use of uninitialized value" on missing tags in DKIM-Signature in recent junk mail |
With recent waves of junk mail I'm seeing lots of warnings
about "Use of uninitialized value" in our logs due to
missing 'd' and/or 's' tags in a signature:
Use of uninitialized value in string ne
at /usr/local/lib/perl5/site_perl/5.17.7/Mail/DKIM/Verifier.pm
line 299, <> line 3.
Use of uninitialized value $prms{"Selector"}
in concatenation (.) or string
at /usr/local/lib/perl5/site_perl/5.17.7/Mail/DKIM/PublicKey.pm
line 91, <> line 3.
Use of uninitialized value $prms{"Domain"}
in concatenation (.) or string
at /usr/local/lib/perl5/site_perl/5.17.7/Mail/DKIM/PublicKey.pm
line 91, <> line 3.
(btw, the final result is fine, it gives: "invalid (missing d tag)" )
Example mail causing the above warnings:
Message-ID: <123@example.com>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
From: xxx <wmt-noreply@example.com>
Date: Tue, 22 Jan 2013 12:25:25 -0800 (PST)
Subject: test
test