DomainKeys Identified Mail #13

Open
bentomas opened this Issue Jan 11, 2011 · 3 comments

Comments

Projects
None yet
4 participants
@bentomas
Contributor

bentomas commented Jan 11, 2011

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?

@Marak

This comment has been minimized.

Show comment Hide comment
@Marak

Marak Jan 12, 2011

Owner

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.

Owner

Marak commented Jan 12, 2011

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.

@pvsundarram

This comment has been minimized.

Show comment Hide comment
@pvsundarram

pvsundarram Jul 7, 2011

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.

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.

@dobesv

This comment has been minimized.

Show comment Hide comment
@dobesv

dobesv Nov 14, 2011

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 commented Nov 14, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment