- Python 78.7%
- HTML 10.5%
- JavaScript 2.4%
- Shell 2.3%
- PHP 1.9%
- Other 4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
4254: Show why a database upgrade failed r=nextgens a=auguruk ## What type of PR? bug-fix ## What does this PR do? When a migration stops with a `RuntimeError`, `flask db upgrade` exits with status 1 but prints nothing, so the admin container fails to start without saying why. `migrations/env.py` loads `alembic.ini` with `fileConfig(...)`. Its default, `disable_existing_loggers=True`, disables every logger that already exists, including `flask_migrate`. Flask-Migrate catches the migration's `RuntimeError`, logs it through that logger and calls `sys.exit(1)`, so the message is dropped. This hides the collision list from the lowercase migration (`9a5866105f5a`, #2695), and the one in #4253. Passing `disable_existing_loggers=False` keeps that logger enabled. With a user and an alias sharing an address, the upgrade in #4253 now prints: ``` ERROR [flask_migrate] Error: These addresses exist as both a user and an alias: a@example.com Remove or rename the user or the alias, then retry. ``` Before this change, it printed nothing. The new unit test fails on master and passes with the change. ### Related issue(s) - Found while working on #4253 (#4252) ## Prerequisites - [x] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Michael Judd <mike@axpero.com> |
||
| .agents/skills/mailu-dev-setup | ||
| .github | ||
| core | ||
| design | ||
| docs | ||
| optional | ||
| scripts | ||
| setup | ||
| tests | ||
| towncrier | ||
| webmails | ||
| .gitignore | ||
| .mergify.yml | ||
| AGENTS.md | ||
| AUTHORS.md | ||
| bors.toml | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| ISSUE_TEMPLATE.md | ||
| LICENSE.md | ||
| PULL_REQUEST_TEMPLATE.md | ||
| pyproject.toml | ||
| README.md | ||
| RELEASE_TEMPLATE.md | ||
| renovate.json | ||
| SECURITY.md | ||

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.
Features
Main features include:
- Standard email server, IMAP and IMAP+, SMTP and Submission with auto-configuration profiles for clients
- Advanced email features, aliases, domain aliases, custom routing, full-text search of email attachments, IMAP METADATA, and BURL-enabled submission for supporting mail clients
- Web access, multiple Webmails and administration interface
- User features, aliases, auto-reply, auto-forward, fetched accounts, managesieve, OpenPGP key publication through WKD, passkey sign-in to Webmail
- Mail-client authentication, OAuth 2.0 authorization and revocable sessions for compatible clients, with a Thunderbird add-on available at
/admin/client - Admin features, global admins, announcements, per-domain delegation, quotas, passkey sign-in and user passkey management
- Security, enforced TLS, DANE, MTA-STS, Letsencrypt!, outgoing DKIM, anti-virus scanner, Snuffleupagus, block malicious attachments
- Antispam, auto-learn, greylisting, DMARC and SPF, anti-spoofing
- Freedom, all FOSS components, no tracker included
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.
