SMTP authentication backend.

see #989
This commit is contained in:
Antoine Nguyen
2017-01-18 13:52:33 +01:00
parent afc64e23db
commit 4c1c64771e
9 changed files with 357 additions and 156 deletions
+29 -5
View File
@@ -240,14 +240,14 @@ This parameter is optional but you must ensure it is set to ``False``
The default configuration file provided by the ``modoboa-admin.py``
command is properly configured.
****
LDAP
****
***********************
External authentication
***********************
.. _ldap_auth:
Authentication
==============
LDAP
====
Modoboa supports external LDAP authentication using the following extra components:
@@ -381,6 +381,30 @@ Modoboa.
to manually delete the Modoboa record, it will be recreated on the
next user login.
.. _smtp_auth:
SMTP
====
It is possible to use an existing SMTP server as an authentication
source. To enable this feature, edit the :file:`settings.py` file and
change the following setting:
.. sourcecode:: python
AUTHENTICATION_BACKENDS = (
'modoboa.lib.authbackends.SMTPBackend',
'django.contrib.auth.backends.ModelBackend',
)
SMTP server location can be customized using the following settings:
.. sourcecode:: python
AUTH_SMTP_SERVER_ADDRESS = 'localhost'
AUTH_SMTP_SERVER_PORT = 25
AUTH_SMTP_SECURED_MODE = None # 'ssl' or 'starttls' are accepted
********************
Database maintenance
********************
+14
View File
@@ -84,6 +84,20 @@ documentation.
Specific instructions
*********************
1.7.0
=====
Modoboa used to provide a custom authentication backend
(``modoboa.lib.authbackends.SimpleBackend``) but it has been
removed. Please modify you :file:`settings.py` file as follows:
.. sourcecode:: python
AUTHENTICATION_BACKENDS = (
# Other backends before...
'django.contrib.auth.backends.ModelBackend',
)
1.6.1
=====