node_mailer icon indicating copy to clipboard operation
node_mailer copied to clipboard

DomainKeys Identified Mail

Open bentomas opened this issue 15 years ago • 3 comments

Is it possible to do DomainKeys Indentified Mail with node-mailer? It is described here:

http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html (number 2).

If it isn't possible, what can I do to help make it happen? Or this something that should happen through my smtp server?

bentomas avatar Jan 11 '11 17:01 bentomas

So it looks like setting up DKIM shouldn't be that hard...? It appears to be a two part problem, setting up the public key in the DNS entry, and signing the email with your private key.

I'm not sure exactly how to implement the signing part, but I have to assume there are other examples floating around for other languages and it will require node's crypto module.

Like most aspects of node_mailer, I think it's going to be hard to test this functionality without a proper stubbed SMTP server / DNS server / etc.

I'd start out by trying to find a similar library that signs emails ( maybe in ruby or php ) and from there we can figure out how they are doing it.

Also, as a note we have been using sendgrid for sending emails and as long as we provide our auth information, they take care of everything else.

Marak avatar Jan 12 '11 02:01 Marak

Hi, Nice library! Thanks a lot for that.

It may be not necessary, i was able to get dkim signing with opendkim on postfix without any problems. There is a configuration in opendkim to sign all outgoing mails generated from trusted network.

pvsundarram avatar Jul 07 '11 15:07 pvsundarram

You can use a service like critsend to sign the emails for you or set up a local relay as a postfix or exim server that signs and delivers the messages for you. You'll need a more serious MTA/relay somewhere in the loop anyway since this library doesn't do direct deliveries. Might as well delegate this DKIM stuff to that mail relay instead.

dobesv avatar Nov 14 '11 23:11 dobesv