简体   繁体   English

Django SMTP 认证最佳实践

[英]Django SMTP authentication best practices

I have a Django website and a postfix service running in the same Ubuntu Server 10.04 box.我有一个 Django 网站和一个在同一个 Ubuntu 服务器 10.04 框中运行的后缀服务。

  1. What type of authentication would you suggest me so that it'll be simple and secure?您会建议我使用哪种类型的身份验证,以使其简单且安全?
  2. If I want my messages to be DKIM/DomainKey signed and compliant with sender-id (so that they don't end up being marked as spam) what should I worry about?如果我希望我的邮件经过 DKIM/DomainKey 签名并符合发件人 ID(这样它们最终不会被标记为垃圾邮件),我应该担心什么?

Anybody?有人吗?

There's a very good explanation by Jeff Atwood about email authentication mechanisms. Jeff Atwood 对 email 身份验证机制做了很好的解释

Django itself doesn't support DKIM out of the box, but there is a useful snippet you could use to get started. Django 本身不支持开箱即用的 DKIM,但您可以使用一个有用的代码片段开始。 It's a subclass of EmailBackend that automatically signs your message and includes the DKIM-Signature header.它是 EmailBackend 的子类,可自动对您的消息进行签名,并包含 DKIM-Signature header。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM