Commit Graph
64 Commits
Author SHA1 Message Date
Antoine Nguyen 4458e82c25 New fixes 2025-02-18 16:15:44 +01:00
Antoine Nguyen db0b7eb79d New fixes 2025-02-18 15:54:59 +01:00
Antoine NguyenandSpitfireap 37556a03c6 Fixed wrong value 2024-06-22 19:45:20 +02:00
Antoine NguyenandSpitfireap 84654a9c80 Added missing settings 2024-06-22 19:45:20 +02:00
Antoine Nguyen 5ad4face02 Fixed unit tests 2024-03-15 17:42:22 +01:00
Antoine Nguyen 89cc0cf2a3 Code reformatted using black 2024-02-20 21:45:07 +01:00
Antoine NguyenandGitHub 8ff49831d1 Merge pull request #3107 from modoboa/doveadm-caching
Doveadm caching
2023-12-20 14:56:48 +01:00
Spitap 1fe1a0e0cd Added visibility rule, better labeling 2023-11-08 14:13:29 +01:00
Spitfireap 2f2c7d1cd7 Updated tests 2023-11-07 20:53:54 +01:00
Spitap c2cc14589d Added option to disable IPV6 mx checks 2023-11-05 12:20:03 +01:00
Spitap fb69ad43ef Few fix 2023-04-20 11:31:14 +02:00
Spitap c0c120ab44 Merge from master 2023-02-27 10:11:35 +01:00
Spitap 1f6ac324fd Fixed tests 2023-02-26 19:18:25 +01:00
Spitap a3a71f03ef merge from master 2023-02-23 20:51:43 +01:00
Antoine Nguyen 8ce9220802 Updated test 2023-02-23 18:08:13 +01:00
Spitap 33e10248ad fixed tests 2023-02-18 11:52:11 +01:00
Antoine NguyenandGitHub 3df446f657 Moving back the stats module to the core. (#2011)
* Moving back the stats module to the core.

* Added system packages to build RRDtool.

* Fixed unit tests.

* Improved coverage.
2020-09-17 16:02:39 +02:00
Clément RivièreandGitHub 8fa842d92c LDAP Authentication - Webmail / Dovecot (#1876)
* Adding settings options for dovecot ldap sync

* Creating update_dovecot_conf command

* Adding async command to update dovecot ldap conf

* Adding unit tests

* Adding port to dovecot generated uris & unit tests

* Code improvement & doc update & tests update
2020-05-05 21:36:29 +02:00
Antoine Nguyen 9a13121fde Improved coverage. 2020-04-21 13:58:31 +02:00
Antoine Nguyen cb0197c609 Retrieve password by SMS.
see #1877
2020-04-21 11:34:29 +02:00
ClemRiviere e2492a08b0 Code improvements 2020-04-15 15:05:57 +02:00
ClemRiviere 613cf1546a Adding unit tests 2020-04-15 13:32:50 +02:00
Antoine NguyenandGitHub a086a1b81c New management command to import LDAP accounts. (#1845)
* New management command to import LDAP accounts.

see #1844
2020-02-24 09:14:03 +01:00
Antoine Nguyen a9b56dde07 Fixed tests. 2020-02-17 18:03:27 +01:00
Antoine NguyenandGitHub fac80445e4 Merge pull request #1829 from modoboa/feature/mail_notif_when_update_avail
Send email notification when new update is available.
2020-01-22 09:34:45 +01:00
Antoine Nguyen e056a99311 Send email notification when new update is available.
see #1402
2020-01-21 17:16:27 +01:00
Jérôme Lebleu 40e6dc838f core: use class-based views for auth 2020-01-13 14:24:25 +01:00
Jérôme Lebleu 369d05e1c3 Remove the UTF-8 coding header 2020-01-07 10:16:54 +01:00
Jérôme Lebleu 74d66c00a0 Update imports for Python 3.4+ 2020-01-07 10:16:54 +01:00
Antoine NguyenandGitHub ab592c3d02 LDAP synchronization process (#1732)
* Initial commit for LDAP sync process.

* Fixed unit tests.

* Added doc and run ldapsync tests on travis.

* Removed server address.

* Force bytes when calling ldap methods.

* Fixed tests compat with python2.

* Do not force bytes here.

* Force bytes.

* Force bytes for attribute names too.

* Disable bytes mode in PY2.

* Handle account removals.

* Fixed unit tests.

* Limit sync to simple users.

* Fixed unit test.

* Fixed unit test.
2019-05-07 10:48:00 +02:00
Antoine Nguyen 277602e3f0 New DNS checks.
see #1618
2018-11-19 18:54:12 +01:00
Antoine Nguyen 6bc2cec007 Fixed lookups with custom DNS server. 2018-10-17 08:47:16 +02:00
Antoine NguyenandGitHub f71432ed98 Merge pull request #1578 from fvandenbulcke/master
feat(useDnsServer): add field in admin view, use in resolver if defin…
2018-10-16 16:30:32 +02:00
Anthony Bourguignon c0e296ae91 add tests for password schemes 2018-10-14 11:09:04 +02:00
Anthony Bourguignon 5955adfdab add a parameter to choose between updating the password to the default scheme or not 2018-10-05 15:52:16 +02:00
Florian VANDENBULCKE 55f6347bbf feat(useDnsServer): add field in admin view, use in resolver if defined. unit tests 2018-10-05 10:00:48 +02:00
Andrew Fyfe f71414ddfa add missing utf8 header
use `# -*- coding: utf-8 -*-` which is more widely supported by editors
2018-02-03 00:59:08 +00:00
Andrew Fyfe eaec271e02 pep8 fixes
- B007 Loop control variable not used within the loop body. If this is intended, start the name with an underscore.
    * modoboa/admin/lib.py
    * modoboa/admin/templatetags/admin_tags.py
    * modoboa/admin/tests/test_account.py
    * modoboa/admin/views/domain.py
    * modoboa/admin/views/identity.py
    * modoboa/core/views/dashboard.py
    * modoboa/limits/forms.py
    * modoboa/limits/handlers.py
    * modoboa/limits/tests/test_api.py
    * modoboa/limits/tests/test_domain_limits.py
    * modoboa/limits/tests/test_import.py
    * modoboa/limits/tests/test_user_limits.py
    * modoboa/limits/utils.py
    * modoboa/parameters/tools.py
    * modoboa/relaydomains/tests.py
- C402 Unnecessary generator - rewrite as a dict comprehension.
    * modoboa/admin/models/domain.py
    * modoboa/admin/views/domain.py
    * modoboa/admin/views/identity.py
    * modoboa/limits/searializers.py
- C407 Unnecessary list comprehension - can take a generator.
    * modoboa/core/password_validation.py
    * modoboa/parameters/tools.py
    * modoboa/transport/backends.py
- C408 Unnecessary dict call - rewrite as a literal.
    * modoboa/admin/tests/test_account.py
    * modoboa/admin/tests/test_alias.py
    * modoboa/admin/tests/test_password_schemes.py
    * modoboa/admin/views/domain.py
    * modoboa/admin/views/identity.py
    * modoboa/core/extensions.py
    * modoboa/lib/middleware.py
    * modoboa/lib/templatetags/form_tags.py
    * modoboa/lib/templatetags/lib_tags.py
    * modoboa/lib/web_utils.py
    * modoboa/limits/handlers.py
    * modoboa/limits/tests/test_user_limits.py
- E741 ambiguous variable name
    * modoboa/core/management/commands/cleanlogs.py
    * modoboa/limits/forms.py
    * modoboa/limits/tests/test_user_limits.py
    * modoboa/limits/utils.py
    * modoboa/relaydomains/tests.py
- F401 imported but unused
    * doc/conf.py
    * modoboa/admin/views/domain.py
    * modoboa/core/app_settings.py
    * modoboa/core/management/commands/load_initial_data.py
- F821 undefined name 'raw_input'
    * modoboa/core/commands/deploy.py
- F841 local variable 'test' is assigned to but never used
    * modoboa/core/app_settings.py
- N802 function name 'setUpTestData' should be lowercase xxx
    * modoboa/lib/email_utils.py - __ for name mangeling, _ for internal
- N805 first argument of a method should be named 'self'
    * modoboa/lib/connections.py
    * modoboa/lib/singleton.py

Ignore the following
- A001 "copyright" is a python builtin and is being shadowed, consider renaming the variable
    * doc/conf.py
- A003 is a python builtin, consider renaming the class attribute
    * modoboa/admin/factories.py
    * modoboa/admin/forms/domain.py
    * modoboa/admin/management/commands/handle_mailbox_operations.py
    * modoboa/admin/management/commands/modo.py
    * modoboa/admin/management/commands/subcommands/_repair.py
    * modoboa/admin/models/domain.py
    * modoboa/admin/models/mailbox.py
    * modoboa/core/commands/__init__.py
    * modoboa/core/commands/deploy.py
    * modoboa/core/commands/help.py
    * modoboa/core/management/commands/clean_inactive_accounts.py
    * modoboa/core/management/commands/cleanlogs.py
    * modoboa/core/management/commands/communicate_with_public_api.py
    * modoboa/core/management/commands/generate_postfix_maps.py
    * modoboa/core/management/commands/load_initial_data.py
    * modoboa/core/management/commands/set_default_site.py
- F401 imported but unused
    * modoboa/admin/apps.py - used to load handlers
    * modoboa/core/password_hashers/__init__.py - dynamically loaded
    * modoboa/limits/apps.py - used to load handlers
    * modoboa/relaydomains/apps.py - used to load handlers
    * modoboa/transport/apps.py - used to load handlers
- N802 function name should be lowercase xxx
    * modoboa/admin/tests/test_account.py
    * modoboa/admin/tests/test_alias.py
    * modoboa/admin/tests/test_domain_alias.py
    * modoboa/admin/tests/test_export.py
    * modoboa/admin/tests/test_mailbox_operations.py
    * modoboa/admin/tests/test_password_schemas.py
    * modoboa/admin/tests/test_repair.py
    * modoboa/core/tests/test_authentication.py
    * modoboa/core/tests/test_core.py
    * modoboa/core/tests/test_ldap.py
    * modoboa/core/tests/test_views.py
    * modoboa/lib/imap_utf7.py
    * modoboa/limits/tests/test_api.py
    * modoboa/limits/tests/test_domain_limits.py
    * modoboa/limits/tests/test_import.py
    * modoboa/limits/tests/test_user_limits.py
    * modoboa/relaydomains/tests.py

other fixes:
- use isinstance() instead of type() == Class
2018-02-03 00:44:00 +00:00
Andrew Fyfe 24a7ca6a9e sort imports using isort
pip install isort
isort -y
2018-02-03 00:43:59 +00:00
Andrew Fyfe 8a1d5736c9 fix quotes
This ensures all files use " for quotes with the exception of
migrations, as this are auto generated I've not modified them.

pip install unify
unify --in-place --recursive --quote \" .
2018-02-03 00:43:58 +00:00
Antoine Nguyen 3cebf2db1a Improve coverage. 2018-01-13 09:53:42 +01:00
Antoine Nguyen 32c1fdee0e Fixed unit test. 2018-01-12 18:59:19 +01:00
Andrew Fyfe 892160d5aa updates for django 1.11 support
- MIDDLEWARE_CLASSES is replaced by MIDDLEWARE

- add MiddlewareMixin to modoboa middlewares

- on_delete will become a required parameter for ForeignKey()
  set it to the current default CASCADE

- on_delete will become a required parameter for OneToOneField()
  set it to the current default CASCADE

- reverse and reverse_lazy have moved to django.urls

- RadioChoiceInput widget has been removed, replace with HorizontalRadioSelect
2017-12-19 00:50:53 +00:00
Antoine NguyenandGitHub 98eea782a0 Generic transport editor. (#1309)
Generic transport editor.

see #1301

* Fixed unit test.

* Added unit tests.

* Fixed unit test.

* Added transport module to test list.

* Moved relay transport backend to appropriate app.

see #1301

* Added missing file.
2017-11-27 10:42:27 +01:00
Antoine NguyenandGitHub 32b2d17553 Added STARTTLS option for LDAP auth. (#1269)
* Added STARTTLS option for LDAP auth.

see #1259

* Fixed unit test.
2017-10-10 18:27:37 +02:00
Antoine Nguyen 34dd70d2a0 Fixed unit test.
see #1250
2017-09-29 09:29:24 +02:00
Antoine NguyenandGitHub 0dd55069bc Added random password generator. (#1225)
* Added random password generator.

see #1219

* Fixed unit test.

see #1219

* Fixed typo.

see #1219

* Increased coverage.

see #1219
2017-09-07 18:18:43 +02:00
Antoine NguyenandGitHub 226d65c0a0 Check MX validity when adding new domain. (#1215)
* Check MX validity when adding new domain.

see #1211

* Fixed unit test.

see #1215

* Added unit tests.

see #1211

* Fixed unit test.

see #1211

* Added missing file.

see #1211

* Fixed error definition.

see #1211
2017-08-18 09:29:01 +02:00
Antoine Nguyen e000d49f28 core: removed debug statement.
see #1196
2017-07-28 10:53:12 +02:00
Antoine Nguyen 9e90632878 core: fixed unit test.
see #1198
2017-07-28 10:34:34 +02:00