Re: dkim=permerror (0-bit key)

From: Дилян Палаузов <dilyan.palauzov_at_aegee.org>
Date: Tue, 05 Mar 2019 17:11:39 +0000

Hello,

the link you sent contains:

Authentication-Results: mail.sr.ht; dkim=permerror (0-bit key)

the only place in opendkim, where “-bit key” can be inserted is:

opendkim/opendkim.c-10763- if (keybits > 0)
opendkim/opendkim.c-10764- {
opendkim/opendkim.c-10765- dkimf_dstring_printf(tmpstr,
opendkim/opendkim.c:10766: " (%u-bit key%s%s)",
opendkim/opendkim.c-10767- keybits,
opendkim/opendkim.c-10768- dnssec == NULL ? ""
opendkim/opendkim.c-10769- : "; ",
opendkim/opendkim.c-10770- dnssec == NULL ? ""
opendkim/opendkim.c-10771- : dnssec);
opendkim/opendkim.c-10772- }

which cannot insert a zero before the bits.

So you are still using an older version.

You have to use the develop branch.

Regards
  Дилян

On Tue, 2019-03-05 at 09:53 -0700, Drew DeVault wrote:
> Hi there! I updated my mail server to the latest OpenDKIM from GitHub
> and sent this email:
>
> https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C20190305164939.GE2797%40cirno.localdomain%3E/raw
>
> Unfortunately, the same problem persists. However, if I pipe this email
> into opendkim -vvv -t -, it seems to work correctly:
>
> opendkim: mlfi_connect() returned SMFIS_CONTINUE
> opendkim: (stdin): mlfi_envfrom() returned SMFIS_CONTINUE
> opendkim: (stdin): mlfi_envrcpt() returned SMFIS_CONTINUE
> opendkim: (stdin): line 1: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 4: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 6: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 12: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 13: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 14: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 15: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 16: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 17: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 18: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 19: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 20: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): line 21: mlfi_header() returned SMFIS_CONTINUE
> opendkim: (stdin): mlfi_eoh() returned SMFIS_CONTINUE
> opendkim: (stdin): mlfi_body() returned SMFIS_CONTINUE
> ### INSHEADER: idx=1 hname='Authentication-Results' hvalue='DEBUG-j;
> dkim=pass (1024-bit key) header.d=cmpwn.com header.i=_at_cmpwn.com header.b=RaD3SjLG'
> opendkim: (stdin): mlfi_eom() returned SMFIS_ACCEPT
> opendkim: (stdin): verification (s=cmpwn, d=cmpwn.com, 1024-bit key) succeeded
> opendkim: mlfi_close() returned SMFIS_CONTINUE
>
> I'm using the following postfix configuration to connect to opendkim:
>
> non_smtp_milters=inet:127.0.0.1:8891
> smtp_milters=inet:127.0.0.1:8891
Received on Tue Mar 05 2019 - 17:12:04 PST

This archive was generated by hypermail 2.3.0 : Wed Mar 06 2019 - 06:00:00 PST