bors-mailu[bot] 0ce884df29 Merge #3927
3927: Fixes around non-blocking I/O in the thread manager r=mergify[bot] a=sdomi

## What type of PR?

bug-fix

## What does this PR do?

Attempts to fix an issue around blocking I/O in `start.py`. Currently, if a process crashes leaving a zombie thread, `start.py` will use 100% CPU on two threads (trying to read stdout/stderr). This can be reproduced by starting a vanilla Mailu, and running `killall dovecot` (can be outside the container); Dovecot always leaves one zombie thread on crash/exit, so the container *never* restarts. My patch fixes this.

This is related to (closes #3852), although I haven't been able to create a repro for that exact case. Nonetheless, I added `errors='replace'` to the popen invocation, as it should prevent mangling the log output. I've seen a couple more issues that are likely related, but can't find them now.

**Important note**: Despite my efforts, `mailu-front` still seems to connect to the old dovecot process, which renders the UI unusable (webmail throws me into a redirect loop). Restarting `mailu-front` frees up the defunct dovecot process and fixes the application - I suppose someone should look into detecting this condition and restarting `mailu-front` if it happens. Unfortunately, I'm not sure how to approach this.


Co-authored-by: sdomi <dominique.liberda@initos.com>
2025-10-07 13:17:29 +00:00
2024-09-09 09:30:12 +02:00
2025-08-24 02:47:07 +02:00
2024-05-03 14:31:18 +02:00
2025-08-22 16:32:03 +00:00
2024-06-28 12:44:29 +02:00
2024-06-09 14:56:34 +00:00
2024-03-26 08:55:16 +01:00
2021-06-26 08:25:15 +00:00
2024-06-09 15:19:29 +00:00
2022-10-19 19:41:49 +02:00
2023-10-28 11:44:01 +00:00
2021-09-13 15:23:05 +02:00
2019-09-17 21:13:35 +02:00
2023-10-20 09:39:16 +02:00
2022-08-24 08:51:47 +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 with auto-configuration profiles for clients
  • Advanced email features, aliases, domain aliases, custom routing, full-text search of email attachments
  • Web access, multiple Webmails and administration interface
  • User features, aliases, auto-reply, auto-forward, fetched accounts, managesieve
  • Admin features, global admins, announcements, per-domain delegation, quotas
  • 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

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.

Description
No description provided
Readme 9.3 MiB
Languages
Python 73.1%
HTML 13%
Shell 5.4%
Dockerfile 2.5%
HCL 2.2%
Other 3.6%