# 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](https://github.com/piotrbulinski/django-ses-backend) - [django-ses](https://github.com/django-ses/django-ses)
License same as [python-ntlm3](https://github.com/trustrachel/python-ntlm3/blob/master/LICENSE.md)
# 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 `bash 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 `bash pew in DJANGO_SMTP_NTLM make release `
If your username/password for pypi are not in a .pypirc file ([ref](http://peterdowns.com/posts/first-time-with-pypi.html)), you will be prompted to type in your credentials.
Metadata
Release files for django-smtp-ntlm-backend 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-smtp-ntlm-backend-0.0.4.tar.gz | 3.5 kB | Without provenance | Details for django-smtp-ntlm-backend-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_smtp_ntlm_backend-0.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_smtp_ntlm_backend-0.0.4-py2.py3-none-any.whl |
Total release size: 9.7 kB
Release files / django-smtp-ntlm-backend-0.0.4.tar.gz
| Download URL | django-smtp-ntlm-backend-0.0.4.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51474a22166fd4d0ddd678ebe458f4ffed9096cf9beb5813a8194372d3f05fe8
|
|
BLAKE2b-256 checksum How to use checksums |
c66738e9fb34d459348e1f7f4893225f137d6abe1f537b612853456fdd56e8be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_smtp_ntlm_backend-0.0.4-py2.py3-none-any.whl
| Download URL | django_smtp_ntlm_backend-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
48670b548e8ac40503e500d02c810a530745d93a04cd48596f7895338984e5c1
|
|
BLAKE2b-256 checksum How to use checksums |
c28f244878ae15330aef150d385b8a9f2ac14a4d455cfca039d95db4206a32e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-smtp-ntlm-backend 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.