Help: How do I sign my mails with DKIM in Rails?

I googled around for this and can't find anything substantial. Has anyone hack their way around ActionMailer?

FYI, I'm sending mails via gmail smtp.

JT wrote in post #965815:

I googled around for this and can't find anything substantial. Has anyone hack their way around ActionMailer?

FYI, I'm sending mails via gmail smtp.

http://lmgtfy.com/?q=dkim+rails

The first hit seems to be useful, unless I misunderstand.

Best,

I saw that one too. It's a tutorial for using dkim with postfix, not rails.

I can of course configure rails to use postfix, but that's not what I'm using now, which is having rails directly replay mail through gmail smtp.

Gmail will probably pass the DKIM-Signature header, so you might be able to just generate that yourself.

I couldn't find an open Ruby implementation, but it should be fairly straightforward to create one based on the source for dkimproxy:

--Matt Jones