Check_dkim problem

Asked by Julien Mariette

Hello,

I've just installed dkimpy-milter on a Postfix MTA server to replace OpenDkim (using the Git repo). OS is CentOS8.

I've get an error message when dkimpy-milter is checking inbound emails :

dkimpy-milter[4788]: check_dkim: Internal program fault while verifying: endswith first arg must be bytes or a tuple
of bytes, not str
dkimpy-milter[4788]: DKIM: Fail (b'soget.onmicrosoft.com')

The main.cf config is :
milter_protocol = 2
milter_default_action = accept
smtpd_milters = local:/var/spool/postfix/dkimpy-milter.sock
non_smtpd_milters = local:/var/spool/postfix/dkimpy-milter.sock

Have you got any idea regarding this issue ?

Don't hesitate if you need additional informations which can help to undesrtand the problem.

Ty.

MaoZLH

Question information

Language:
English Edit question
Status:
Solved
For:
dkimpy-milter Edit question
Assignee:
No assignee Edit question
Solved by:
Julien Mariette
Solved:
Last query:
Last reply:
Revision history for this message
Julien Mariette (maozlh) said :
#1

Hello,

The problem was related to the python package dnspython.

I've installed the Centos 8 RPM => KO.

I've tried to install using pip and now the DKIM check is working properly.

Thank you for this opendkim replacement !