Does not support IDNs with SMTPUTF8.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkimpy-milter |
Confirmed
|
Medium
|
Unassigned |
Bug Description
dkimpy does not sign E-Mails send over SMTPUTF8 while there are in their UTF8 Form. It does not try to convert it to punycode and if i try to provide an entry in the key-table in utf8, it just does not sign it and crashes.
sign_dkim: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/
milter.
File "/usr/lib/
self.
ilter[169754]: File "/usr/lib/
h = d.sign(
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
Changed in dkimpy-milter: | |
importance: | Undecided → Medium |
milestone: | none → future |
I agree this is something that should work, but I'll need to research the RFC updates on IDN for DKIM to see what the best way to support this is. I saw the original bug you filed against dkimpy. I'm not sure that was wrong, but I can reassign it if needed. d.sign here is a dkim.DKIM object.