Comments (5)
It should. There was a discussion about it in mailu chat a few weeks ago and an (already closed) issue at Mailu/Mailu#1483. Please post to that issue if it's reproducible for you.
from helm-charts.
(closing it here, we will track this in Mailu/Mailu#1483)
from helm-charts.
Solution can be easily done. If postfix is running on the PID file, the file is locked. So on startup we can simply test if that pidfile exists. If so, we do
flock -n master.pid rm master.pid
This command removes the pid file if it's not locked (meaning no other postfix instance running on it), otherwise it fails.
from helm-charts.
Great to hear. I believe this should be added in [postfix]/start.py right before os.system("postfix start-fg"). Or should we run this command somehow with kubernetes?
However I see another very related issue is with concurrent postfix instances as mentioned in #53 , if we'd decide to scale number of postfix workers, current partition layout with shared /queue wouldn't allow to do that. shouldn't whole /queue directory be regular volume for the pod, not a shared one, mounted from main PVC ? I believe this change would allow to start unlimited number of postfix workers.
I also understand that if we go this route before termination of a pod, postfix queue should be emptied, otherwise we would have data loss of received-but-not-yet-processed emails.
from helm-charts.
Apart Your proposed cleanup command, IMHO that from kubernetes perspective /queue/pid folder should be not mounted from any volume. When Kubernetes restarts pod, it expects clean state of the container. Moving folder with PID files to any persistency is opposite to the best practices of Kubernetes and I don't see any reason why /queue/pid would be useful outside the container.
from helm-charts.
Related Issues (20)
- [BUG] Default configuration disables outbound TLS of Postfix HOT 3
- fix(admin): relation "domain" does not exist for postgres HOT 1
- treafik support HOT 2
- [BUG] rspamd: DNS reply returned 'no error' for dwl.dnswl.org while 'no records with this name' was expected when querying for 'LkJBkdnhL-tpa.dwl.dnswl.org' (likely DNS spoofing or BL internal issues) HOT 3
- feat: providing existing certificate for `imaps`, `pop3s`, `smtps`(465), and `starttls`(587), etc HOT 4
- No rate limit internal email? HOT 3
- Error: failed to prepare subPath for volumeMount "data" of container HOT 2
- [BUG] global.storageClass is not applied to single_pvc HOT 2
- [BUG] externalRedis,No password attribute HOT 4
- mailu-front: using reloader on k8s HOT 4
- Whenever I restart my kubernetes cluster running mailu my user accounts are lost. HOT 1
- [BUG] Using an external MariaDB database causes admin pod to fail starting HOT 1
- Hostname Test fails for valid domain 123_123_123_123.example.org HOT 3
- Too many redirects HOT 2
- [BUG] Admin Pod restarting endlessly due to probes failing HOT 4
- How to control outgoing mails in a multi node cluster? HOT 2
- [BUG] Dovecot Pod does not have valid certs for lmtp when front is provided with ExistingSecret HOT 1
- Please add an option to disable rspamd HOT 4
- [BUG] Non-working parameters parameters in values.yaml "nodeSelector" and "affinity" HOT 6
- [BUG] dovecot data mount point HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.