开发者

Django SMTP and secure password authentication

开发者 https://www.devze.com 2022-12-26 21:30 出处:网络
I have an SMTP server that requires secure password authentication (e.g. Outlook requires to check SPA). Is there a way to deal with it with Django SMTPConnection?

I have an SMTP server that requires secure password authentication (e.g. Outlook requires to check SPA). Is there a way to deal with it with Django SMTPConnection? Or maybe ideas about any python solution to deal SPA?

Honestly, I couldn't find enough about SPA, to understand what is it exactly:

  • en.wikipedia:Secure_Password_Authentication
  • http://www.kuro5hin.org开发者_StackOverflow/?op=displaystory;sid=2002/4/28/1436/66154


The python-ntlm project is a working implementation of NTLM authentication for urllib2. There is a patch floating around in the tracker that allows integration with smtplib.

I would install python-ntlm, then fork smtplib inside your Django project (making sure it gets imported through smtplib) and then patch either smtplib (to always use ntlm authentication) or django (to use python-ntlm).

This will get the work done.


After googling for it I found the same question asked on Google Groups: http://groups.google.com/group/django-users/browse_thread/thread/fc7f77e2f796e6a4/90ae093cbb2863b8?pli=1

SPA is a proprietary MS protocol for which there is no documentation. I don't think you will find a non MS implementation of SPA.

0

精彩评论

暂无评论...
验证码 换一张
取 消