John Levine wrote in <[email protected]>: |It appears that David Harris <[email protected]> said: |>1: Any advice on common traps into which new implementors might fall. | |There are lots of open source DKIM packages that do the hash correctly.
I would look at exim, the included library is the only established DKIM package i know which normalizes correctly in all possible aspects. (Though headers are the place where the nits can be found.) (You could also look at my single file s-dkim-sign, but the body part is somewhat optimized. I think the simplemost DKIM body line thing on the planet can be found for OpenSMTPD and its filter-dkimsign (main.c:dkim_parse_body()), but this is not a milter for one.) If you are writing a milter, and do not use libmilter but do it yourself, be aware that you need the current HTML documentation of libmilter as a reference at hand, the "THE SENDMAIL MILTER PROTOCOL" text file does not reflect current reality, as it was not updated accordingly. (In particular it does not copy "Header continuation lines are separated with LF, and milters SHOULD NOT use CRLF but only LF for these, too: it is up to the MTA to adjust that", one has thus to contradict the IETF spec which treats only CR+LF as valid newlines, at least for headers.) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | |And in Fall, feel "The Dropbear Bard"s ball(s). | |The banded bear |without a care, |Banged on himself fore'er and e'er | |Farewell, dear collar bear _______________________________________________ Ietf-dkim mailing list -- [email protected] To unsubscribe send an email to [email protected]
