Traceback (most recent call last):
Module lp.services.mail.incoming, line 398, in handleMail
signature_timestamp_checker)
Module lp.services.mail.incoming, line 472, in handle_one_mail
mail, signature_timestamp_checker)
Module lp.services.mail.incoming, line 203, in authenticateEmail
dkim_trusted_addr = _authenticateDkim(mail)
Module lp.services.mail.incoming, line 138, in _authenticateDkim
signed_message.parsed_string, dkim_log, details=signing_details)
Module dkim, line 573, in verify
x = asn1_parse(ASN1_Object, base64.b64decode(pub['p']))
KeyError: 'p'
According to <http://www.ietf.org/rfc/rfc4871.txt> the p= field is required, so this signature is invalid. However, it would be better if Launchpad just ignored the broken header and treated the message as untrusted. This does seem to be a real message, not spam, and mail from this user is currently dropped.
OOPS-2121INBOUNDEMAIL1 shows an incoming mail (saved to http:// launchpadlibrar ian.net/ 83439610/ 56f7b376- fca3-11e0- 9627-001e0bc395 7e.txt) which fails in dkim verification:
Traceback (most recent call last): mail.incoming, line 398, in handleMail timestamp_ checker) mail.incoming, line 472, in handle_one_mail timestamp_ checker) mail.incoming, line 203, in authenticateEmail trusted_ addr = _authenticateDk im(mail) mail.incoming, line 138, in _authenticateDkim message. parsed_ string, dkim_log, details= signing_ details) ASN1_Object, base64. b64decode( pub['p' ]))
Module lp.services.
signature_
Module lp.services.
mail, signature_
Module lp.services.
dkim_
Module lp.services.
signed_
Module dkim, line 573, in verify
x = asn1_parse(
KeyError: 'p'
The dkim signature is
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; PIyBgQ/ s3tPBunXKtwylEz BLrkWuD1E= ; SSF:X-QQ- BUSINESS- ORIGIN: X-Originating- IP:X-QQ- STYLE: mid:From: To:Subject: Mime-Version: Content- Type: Transfer- Encoding: Date:X- Priority: Message- ID:X-QQ- MIME: X-QQ-Mailer: X-QQ-ReplyHash; m5Rj+/uMDDitTG6 wK07zJ46n0P7WBt Ofers6Fi1/ NRrXvsx0PJ0VE PDtVqSs6aupHpJh /mRqV+7xPtL8obZ Wl2dlMzdCV6pctF tY3yXTz
t=1319283879; bh=YNYe6JlvFtLn
h=X-QQ-
X-QQ-
Content-
X-Mailer:
b=ZQIwng8t1rDu
XBG3HfWDaT/
According to <http:// www.ietf. org/rfc/ rfc4871. txt> the p= field is required, so this signature is invalid. However, it would be better if Launchpad just ignored the broken header and treated the message as untrusted. This does seem to be a real message, not spam, and mail from this user is currently dropped.