[Mimedefang] What about DKIM

David F. Skoll dfs at roaringpenguin.com
Mon May 13 16:15:25 EDT 2013


On Mon, 13 May 2013 14:01:57 -0600
Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:

> Couple of questions: Is the SHA computed over the header or the
> entirety of the message?

Entire message.

> $dkim->PRINT($entity->as_string());

I'm not sure how that would handle SMTP line endings.  It's been a while
since I wrote the code, so I can't remember if I tried what you just
wrote and it didn't work, or if I didn't try it.

> makes me wonder about this (and I've seen it elsewhere).  Why not
> just do:

> 			local $/ = "\r\n";
> 			chomp;

It's not the same thing.  My code would convert:

     foo\n      to     foo

whereas yours would leave it as foo\n

Regards,

David.



More information about the MIMEDefang mailing list