I did some more debugging and found the error is raised by dnsplug.py in the dkim package. The function get_txt_dnspython has the line (34)
return b"".join(r.items[0].strings)
which does not work. I changed it into
return b"".join(list(r.items)[0].strings)
I did some more debugging and found the error is raised by dnsplug.py in the dkim package. The function get_txt_dnspython has the line (34) r.items[ 0].strings)
return b"".join(
which does not work. I changed it into list(r. items)[ 0].strings)
return b"".join(
which does work. I now get a verified dkim signature. Indeed, I noticed that the official source (https:/ /git.launchpad. net/dkimpy/ tree/dkim/ dnsplug. py) has the same change made to the code.
Also fun, now that I know what to look for, I found #1888583 which fixed this already :)