wneessen / go-mail

📧 Easy to use, yet comprehensive library for sending mails with Go
https://go-mail.dev
MIT License
680 stars 48 forks source link

Evaluate if DKIM can/should be implemented #28

Closed wneessen closed 2 years ago

wneessen commented 2 years ago

Is your feature request related to a problem? Please describe.

DKIM might be a feature a proper mail library should support. Of course there are already DKIM implementations out there, but that would break our "only standard library" premise. We might wanna evaluate if DKIM can be easily implemented as part of this library.

Describe the solution you'd like

Solution should allow signing mails with domain key headers.

Describe alternatives you've considered

No response

Additional context

No response

inliquid commented 2 years ago

I'm wondering what is the status at the moment? Any conclusion whether it's feasible / easy enough ti implement to become a feature?

wneessen commented 2 years ago

I am still working through the RFC, but some solid groundwork has already been done. I expect it to be done by end of this month, if I find enough free time.

wneessen commented 2 years ago

After spending some time implementing DKIM myself, I decided to cancel the implementation directly into go-mail. Since we now have Middleware we have a much more elegant tool at hand to implement DKIM with go-mail.

Therefore I've started work on a DKIM middleware instead in the go-mail-middleware repository. I have a working proof of concept in https://github.com/wneessen/go-mail-middleware/tree/feature/dkim/dkim and just need to perform some fine-tuneing, add tests and documentation. I expect this to go live in the next days.

Therefore I will close this feature-request in favour of the middlware.

wneessen commented 2 years ago

go-mail-middleware v0.04 with DKIM support has just been released: https://github.com/wneessen/go-mail-middleware/releases/tag/v0.0.4