Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-smtp-ntlm-backend

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-smtp-ntlm-backend

A Django email backend for SMTP servers with NTLM authentication

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

django-smtp-ntlm-backend

Django email backend supporting SMTP with NTLM authentication, e.g. for MS Outlook Exchange over SMTP

Mostly copied from

  • https://www.pythondiary.com/tutorials/django-ntlm-smtp-auth.html
  • piotrbulinski/django-ses-backend
  • django-ses

License same as python-ntlm3

Installing

pip install django-smtp-ntlm-backend

and until https://github.com/trustrachel/python-ntlm3/pull/24 is closed

pip install git+https://github.com/shadiakiki1986/python-ntlm3.git@feature_smtp

and add the settings variables for SMTP as usual, with the username being domain\\user

Testing

pew new DJANGO_SMTP_NTLM
pip3 install -q Django==1.11
pip3 install -r requirements.txt
python3 runtests.py

Usage

In the settings.py, use

EMAIL_BACKEND = 'django_smtp_ntlm_backend.NTLMEmail'
EMAIL_HOST = "mail.server.com"
EMAIL_PORT = port # e.g. 587
EMAIL_HOST_USER = "domain\\username"
EMAIL_HOST_PASSWORD = "password"
EMAIL_USE_TLS = False
EMAIL_USE_SSL = False
DEFAULT_FROM_EMAIL="Someone <from@email.com>"

Publishing to pypi

Run

pew in DJANGO_SMTP_NTLM make release

If your username/password for pypi are not in a .pypirc file (ref), you will be prompted to type in your credentials.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc