1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00
Insular email distribution - mail server as Docker images
Go to file
bors[bot] c09253ede3
Merge #2323
2323: Fix Postfix FileExistsError on startup r=mergify[bot] a=Pumba98

## What type of PR?

bug-fix

## What does this PR do?

I'm running mailu with the mailu helm-chart on kubernetes. Sometimes when a Pod restarts I get the following error during startup:
```
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/start.py", line 18, in start_podop
os.mkdir('/dev/shm/postfix',mode=0o700)
FileExistsError: [Errno 17] File exists: '/dev/shm/postfix'
INFO:MAIN:MTA-STS daemon starting...
```

But that does not prevent the container startup. When mails arrive it will fail with something like:

```
postfix/trivial-rewrite[94979]: warning: connect to /tmp/podop.socket: No such file or directory
postfix/trivial-rewrite[94979]: warning: table socketmap:unix:/tmp/podop.socket:transport lookup error: No such file or directory
postfix/trivial-rewrite[94979]: warning: socketmap:unix:/tmp/podop.socket:transport lookup error for "*"
```

I'm running this quick fix now since almost two months without problems. Maybe you got a better approach how to solve this, but this works fine for me.

### Related issue(s)
- none

## 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.
--->

**No changelog or documentation necessary for this minor change.**


Co-authored-by: Pumba98 <mail@pumba98.de>
Co-authored-by: Florent Daigniere <nextgens@users.noreply.github.com>
2022-04-18 11:04:14 +00:00
.github Switched from "$(/usr/bin/git log -1 --format='%H')" to "$(/usr/bin/git rev-parse HEAD)" 2022-01-26 15:54:20 +00:00
core Merge #2323 2022-04-18 11:04:14 +00:00
design RFC: Mailu directory structure 2019-10-14 22:23:17 +03:00
docs Adding missing semicolon after remote_addr 2022-04-01 16:01:18 +02:00
optional Add pytz module 2022-04-11 12:38:19 +02:00
setup Update alpine-linux to 3.14.5 - Zlib security FIX 2022-03-30 09:08:28 +00:00
tests doh 2022-01-06 11:37:18 +01:00
towncrier create PR2302 changelog 2022-03-30 09:17:20 +00:00
webmails Update application.ini 2022-03-11 12:26:13 +01:00
.gitignore
.mergify.yml Preparations for 1.9 release. 2021-12-29 14:40:45 +00:00
AUTHORS.md Update AUTHORS.md 2021-12-30 15:28:24 +01:00
bors.toml Switch to github actions for CI/CD 2021-06-26 08:25:15 +00:00
CHANGELOG.md Update CHANGELOG.md with items that were not added by mistake. 2022-01-01 12:35:53 +00:00
CODE_OF_CONDUCT.md
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
PULL_REQUEST_TEMPLATE.md fix spelling 2021-09-13 15:23:05 +02:00
pyproject.toml
README.md document 2022-03-16 17:05:23 +01:00
RELEASE_TEMPLATE.md changed semver example to 1.9.x 2021-12-30 15:21:22 +01: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 autoconfiguration profiles for clients
  • 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.