I looked around in the code located at /usr/lib/python3/dist-packages/dkimpy_milter and /usr/lib/python3/dist-packages/dkim.
Specifically the file dkimpy_milter/__init__.py contains the following line:
syslog.syslog("check_dkim: Internal program fault while verifying: {0}".format(x))
Because the output in syslog said "check_dkim: Internal program fault while verifying: 0" I wondered how the exception could be translated to "(0)", so I added the following line after that
syslog.syslog(repr(x))
Which gave me the following output: "KeyError(0)"
Not sure if this is a legit way of debugging. I figured the 0 pointed to the first DKIM header in the mail, not sure though. I couldn't really follow the rest of the code, so I left it at that and entered the bug report.
Apologies for omitting this info, there's probably more I'm forgetting to report :(
Update: one more thing I forgot. I'm using postfix. Used the following based on the readme to configure it:
I looked around in the code located at /usr/lib/ python3/ dist-packages/ dkimpy_ milter and /usr/lib/ python3/ dist-packages/ dkim. milter/ __init_ _.py contains the following line:
Specifically the file dkimpy_
syslog. syslog( "check_ dkim: Internal program fault while verifying: {0}".format(x))
Because the output in syslog said "check_dkim: Internal program fault while verifying: 0" I wondered how the exception could be translated to "(0)", so I added the following line after that
syslog. syslog( repr(x) )
Which gave me the following output: "KeyError(0)"
Not sure if this is a legit way of debugging. I figured the 0 pointed to the first DKIM header in the mail, not sure though. I couldn't really follow the rest of the code, so I left it at that and entered the bug report.
Apologies for omitting this info, there's probably more I'm forgetting to report :(
Update: one more thing I forgot. I'm using postfix. Used the following based on the readme to configure it:
smtps inet n - - - - smtpd inet:127. 0.0.1:8892 macro_daemon_ name=VERIFYING
...
-o smtpd_milters=
-o milter_
...
submission inet n - - - - smtpd macro_daemon_ name=ORIGINATIN G inet:127. 0.0.1:8892
...
-o milter_
-o smtpd_milters=
...
Signing of outgoing messages seems to work fine, both rsa and ed25519.