50 Commits (8fe9e695f3abd2422271b7c72a40c2d59366ed0f)

Author SHA1 Message Date
hoellen 8fe9e695f3 prefer non-wildcard aliases over wildcard aliases 6 years ago
hoellen 79768c09f6 fix alias matching behaviour 6 years ago
kaiyou b6aaf57be1 Merge branch 'refactor-config' of github.com:kaiyou/mailu into refactor-config 6 years ago
kaiyou d0f07984b0 Merge remote-tracking branch 'upstream/master' into refactor-config 6 years ago
mergify[bot] 37027cfce7
Merge pull request #633 from kaiyou/fix-sender-checks
Improve sender checks
6 years ago
Tim Möhlmann c9df311a0d
Set forward_destination to an empty list
The value of `None` resulted in an error, since a list was expected.
6 years ago
Tim Möhlmann 4783e61693
Fix password context
Fixes the following error:
```
admin_1      | [2018-11-09 09:44:10,533] ERROR in app: Exception on /internal/auth/email [GET]
admin_1      | Traceback (most recent call last):
admin_1      |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
admin_1      |     response = self.full_dispatch_request()
admin_1      |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
admin_1      |     rv = self.handle_user_exception(e)
admin_1      |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
admin_1      |     reraise(exc_type, exc_value, tb)
admin_1      |   File "/usr/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
admin_1      |     raise value
admin_1      |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
admin_1      |     rv = self.dispatch_request()
admin_1      |   File "/usr/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
admin_1      |     return self.view_functions[rule.endpoint](**req.view_args)
admin_1      |   File "/usr/lib/python3.6/site-packages/flask_limiter/extension.py", line 544, in __inner
admin_1      |     return obj(*a, **k)
admin_1      |   File "/app/mailu/internal/views/auth.py", line 18, in nginx_authentication
admin_1      |     headers = nginx.handle_authentication(flask.request.headers)
admin_1      |   File "/app/mailu/internal/nginx.py", line 48, in handle_authentication
admin_1      |     if user.check_password(password):
admin_1      |   File "/app/mailu/models.py", line 333, in check_password
admin_1      |     context = User.pw_context
admin_1      | AttributeError: type object 'User' has no attribute 'pw_context'
```
6 years ago
kaiyou 5b769e23da Merge branch 'master' into refactor-config 6 years ago
kaiyou f57d4859f3 Provide an in-context wrapper for getting users 6 years ago
hoellen 680ad4b67a
Catching only ValueError
Co-Authored-By: ionutfilip <ionut.philip@gmail.com>
6 years ago
Ionut Filip 6dcc33e390 Fixed admin_1 errors in the logs
Fixed errors when trying to log in with an account without domain.
This closes #585
6 years ago
Scott 56fb74c502 Fix typo (duplicate self). Fixes #683 6 years ago
Tim Möhlmann ed81c076f2
Take out "models" path, as we are already in it 6 years ago
Tim Möhlmann 2d382f2d67
Merge branch 'master' into fix-sender-checks 6 years ago
kaiyou 1fcaef7c7e
Merge branch 'master' into fix-sender-checks 6 years ago
hoellen 72d4fa2bc9
remove empty line from merge conflict 6 years ago
hoellen 857ad50509
Merge branch 'master' into feat-reply-startdate 6 years ago
kaiyou 82069ea3f0 Clean most of the refactored code 6 years ago
kaiyou fc24426291 First batch of refactoring, using the app factory pattern 6 years ago
kaiyou 01fa179767 Update the user password in database when needed 6 years ago
kaiyou ed3388ed6e Merge branch 'master' into feat-reply-startdate 7 years ago
kaiyou e784556330 Fix an edge case with old values containing None for coma separated lists 7 years ago
kaiyou 5ada669f43 Rebase reply startdate on master 7 years ago
kaiyou c6846fd8db Merge branch 'master' into feat-reply-startdate 7 years ago
Thomas Sänger c8b39c5d4a
support bcrypt and use it as default 7 years ago
kaiyou 508e519a34 Refactor the postfix views and implement sender checks 7 years ago
kaiyou fcad52b145 Implement a start date filter for autoreply, fixes #362 7 years ago
kaiyou 542793260b Handle wildcard aliases using podop 7 years ago
kaiyou 7143fb8c47 Implement some basic views for podop 7 years ago
Pierre Jaury 76617a3c97 Store the quota status in database 7 years ago
Pierre Jaury 14687d09ba Fix announcements for idna domains 7 years ago
kaiyou 7f0447514c Finish storing the user quota to redis 7 years ago
kaiyou 80893be68b Add a missing import to dnspython 7 years ago
kaiyou 091369915b Display the user quota in the admin interface 7 years ago
kaiyou 62d1a0c104 Add a status field to the domain list 7 years ago
Stefan Auditor d2c6cecca6 Remove is_enabled method and use the enabled attribute instead 7 years ago
Stefan Auditor 5bfdd75738 Respect user enabled flag on user.login 7 years ago
Stefan Auditor 20d6fbae48 Add enabled flag to user model 7 years ago
Scott 2c2a1ed042 Remove stale link to old auto-forward settings. Fixes #450
Also update a reference to 'smtp' to use HOST_AUTHSMTP
7 years ago
Stefan Auditor 7f5bd98a2e Add parameters to database field 7 years ago
Stefan Auditor 93d5254b3f Add another type decorator for idna email support 7 years ago
Stefan Auditor 792c720c13 Save user email domain_name as idna representation 7 years ago
Stefan Auditor c40e255f3b Reset relay columns to string 7 years ago
Stefan Auditor d9ea64fac7 Import idna library and move code a bit upwards 7 years ago
Stefan Auditor 5a7272ff12 Replace other occurences of domain names with idna 7 years ago
Stefan Auditor 1b666cd25b Add a sqlalchemy custom type for unicode to idna conersion of domain names 7 years ago
kaiyou 2662abedef Enable self-service account signup 7 years ago
kaiyou 011e1fa52d Add an end of vacation field, related to #218 7 years ago
kaiyou 570e90acbc Move email send features to the User model 7 years ago
kaiyou 689be5f2d9 Move all directories per theme 7 years ago