DKIM validation fails with Python type error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkimpy-milter |
Invalid
|
Undecided
|
Unassigned |
Bug Description
DKIM validation seems to fail consistently with the newest version of DKIMpy-Milter. In the logs, the message "check_dkim: endswith first arg must be bytes or a tuple of bytes, not str" is logged. I'm not sure how to troubleshoot this further.
The email message header:
````
Authentication-
arg must be bytes or a tuple of bytes, not str) header.
<email address hidden> header.a=rsa-sha256
````
My logs:
````
Oct 16 01:20:36 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
Oct 16 01:20:55 myservername.com dkimpy-
````
What you are seeing is an internal error being captured in the comment. I have a suspicion about the problem, but I haven't managed to replicate it. Would you please provide the real domain (d=) and selector (s=) for the signature. I need to look at the DKIM key record for the domain to test my theory.