1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Insular email distribution - mail server as Docker images
Go to file
bors[bot] 8c8c1b2015
Merge #1997
1997: Prevent traceback when using non-email in login r=mergify[bot] a=ghostwheel42

There's a traceback when the username used to log via SMTPAUTH
in is not an email address:

=== before ===
```
[...] ERROR in app: Exception on /internal/auth/email [GET]
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1179, in _execute_context
    context = constructor(dialect, self, conn, *args)
  File "/usr/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in _init_compiled
    param.append(processors[key](compiled_params[key]))
  File "/usr/lib/python3.9/site-packages/sqlalchemy/sql/type_api.py", line 1201, in process
    return process_param(value, dialect)
  File "/app/mailu/models.py", line 60, in process_bind_param
    localpart, domain_name = value.lower().rsplit('`@',` 1)
ValueError: not enough values to unpack (expected 2, got 1)
[...]
[parameters: [{'%(140657157923216 param)s': 'foobar'}]]
```

=== after ===
```
[...] WARNING in nginx: Invalid user 'foobar': (builtins.ValueError) invalid email address (no "`@")`
```

## What type of PR?

enhancement

## What does this PR do?

replace traceback (ERROR) with error message (WARNING)

### Related issue(s)

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [ ] In case of feature or enhancement: documentation updated accordingly
- [ ] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
2021-10-12 12:07:08 +00:00
.github Give docker containers in each test one more minute for starting. 2021-08-07 09:27:47 +02:00
core Merge #1997 2021-10-12 12:07:08 +00:00
docs clarify the documentation 2021-10-09 18:58:51 +02:00
optional not required anymore 2021-09-27 09:04:15 +02:00
setup Give alpine 3.14.2 a shot 2021-09-01 18:56:44 +02:00
tests Update Alpine version from 3.10 to 3.14 2021-08-08 14:50:20 +02:00
towncrier Merge #2007 2021-10-09 17:01:25 +00:00
webmails remove health check from log 2021-09-28 12:29:57 +02:00
.gitignore use different alpine image for arm, add config for php images+arm 2019-08-21 12:02:10 -04:00
.mergify.yml Update list of trusted authors. 2021-06-29 13:57:49 +02:00
AUTHORS.md Improve changelog and release texts for 1.8 2020-10-12 21:18:20 +02:00
bors.toml Switch to github actions for CI/CD 2021-06-26 08:25:15 +00:00
CHANGELOG.md enhanced security changelog entry and added recommendation to recreate secret_key 2021-08-07 09:25:40 +02:00
CODE_OF_CONDUCT.md Add a code of conduct, fixes #319 2017-11-12 11:42:53 +01:00
CONTRIBUTING.md Update "the development guidelines" hyperlink 2020-04-06 16:44:26 -03:00
ISSUE_TEMPLATE.md Remove <> tags as they break markdown rendering 2020-09-11 22:44:21 +02:00
LICENSE.md Rename the freeposte/mailu directory and database 2016-10-29 13:42:39 +02:00
PULL_REQUEST_TEMPLATE.md fix spelling 2021-09-13 15:23:05 +02:00
pyproject.toml Fix the package setting 2019-09-17 21:13:35 +02:00
README.md Cosmetic change 2021-09-01 08:41:59 +02:00

Mailu

Mailu is a simple yet full-featured mail server as a set of Docker images. It is free software (both as in free beer and as in free speech), open to suggestions and external contributions. The project aims at providing people with an easily setup, easily maintained and full-featured mail server while not shipping proprietary software nor unrelated features often found in popular groupware.

Most of the documentation is available on our Website, you can also try our demo server before setting up your own, and come talk to us on Matrix.

Features

Main features include:

  • Standard email server, IMAP and IMAP+, SMTP and Submission
  • Advanced email features, aliases, domain aliases, custom routing
  • Web access, multiple Webmails and administration interface
  • User features, aliases, auto-reply, auto-forward, fetched accounts
  • Admin features, global admins, announcements, per-domain delegation, quotas
  • Security, enforced TLS, DANE, MTA-STS, Letsencrypt!, outgoing DKIM, anti-virus scanner
  • Antispam, auto-learn, greylisting, DMARC and SPF
  • Freedom, all FOSS components, no tracker included

Domains

Contributing

Mailu is free software, open to suggestions and contributions. All components are free software and compatible with the MIT license. All specific configuration files, Dockerfiles and code are placed under the MIT license.