{{{
class DKIMBackend(EmailBackend):
def _send(self, email_message):
"""A helper method that does the actual sending + DKIM signing."""
if not email_message.recipients():
return False
try:
message_string = email_message.message().as_string()
signature = dkim.sign(message_string,
settings.DKIM_SELECTOR,
settings.DKIM_DOMAIN,
settings.DKIM_PRIVATE_KEY)
self.connection.sendmail(email_message.from_email,
email_message.recipients(), signature+message_string)
except:
if not self.fail_silently:
raise
return False
return True
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24575>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
It could be useful. On the other hand, it adds more settings and a
dependency on another library. I don't have a sense if enough people will
use it that it makes sense to include it in core as opposed to making it
an external app. Could you raise the idea on the DevelopersMailingList?
--
Ticket URL: <https://code.djangoproject.com/ticket/24575#comment:1>
* status: new => closed
* resolution: => wontfix
Comment:
The [https://groups.google.com/d/topic/django-developers/65zjxSYR-
HY/discussion mailing list thread] seemed to conclude that DKIM is the
responsibility of an MTA, not Django, so this wouldn't be a good candidate
for inclusion in core.
--
Ticket URL: <https://code.djangoproject.com/ticket/24575#comment:2>