Problem parsing too long From: header

From: Dmitry E. Mikhailov <d.mikhailov_at_infocommunications.ru>
Date: Fri, 31 Oct 2014 00:07:32 +0500

Hi,

CentOS 5/i386, Postfix 2.3.3 and OpenDKIM 2.9.2 installed

Trying to send the message with overly long UTF8 "From:" header:

From: =?UTF-8?Q?=D0=9A=D0=BE=D0=BC=D0=BF=D0=B0=D0=BD=D0=B8=D1=8F_=22?=
  =?UTF-8?Q?=D0=9F=D1=80=D0=BE=D0=BC=D1=8B=D1=88=D0=BB=D0=B5=D0=BD=D0=BD?=
  =?UTF-8?Q?=D0=BE=D0=B5_=D0=9E=D0=B1=D0=BE=D1=80=D1=83=D0=B4=D0=BE=D0=B2?=
  =?UTF-8?Q?=D0=B0=D0=BD=D0=B8=D0=B5=22?= <kpo_at_ufaprom.ru>

OpenDKIM won't sign:
Oct 30 13:01:50 ufaprom opendkim[17058]: (unknown-jobid): no signing
table match for 'kpo_at_uf'
Oct 30 13:01:50 ufaprom opendkim[17058]: 6337A1248920: no signature data

Looks like there's ~256 byte limit somewhere. IMHO it's in
libopendkim/dkim-mailparse.c because it takes a string and returns
strings. But I wasn't able to fully understand the C code.

Please help.

Full offending message attached.

Best regards,
        Dmitry Mikhailov.

attached mail follows:



Received on Thu Oct 30 2014 - 19:08:15 PST

This archive was generated by hypermail 2.3.0 : Thu Oct 30 2014 - 19:18:00 PST