Comments (6)
FWIW - I ran into a similar problem.
Accessing the container and running the following inside the container
fail2ban-client -d
Was useful to tell me what was wrong.
Previously I had setup a config/fail2ban-fail2ban.cf
file. Apparently the newer image contains a version of fail2ban which does not like the syntax I was using. It was complaining about missing a section header.
By removing this configuration file (and the copy that is placed into the container) - I was able to get fail2ban to start-up again just fine.
from docker-mailserver.
My server just pulled the latest version, which appears to be version 14, and now my log files are filling up with this:
Is that an unintended upgrade? We do not provide personal support in case you upgraded without carefully reading the changelog, as per our guidelines. I also saw "Watchtower" being used, and that's precisely why I'm asking.
Maintainer's time is the most precious resource this project has, hence my answer. To me, this just looks like Fail2Ban is not working on your system, and you did not bother to really investigate, instead opting to reach out for personal support - which we do not provide. I'm running :edge
, and Fail2Ban is working quite nicely. I suggest running mkdir -p /var/run/fail2ban
manually once.
from docker-mailserver.
Never upgrade to a major release of DMS without checking our changelog.
We use semver tags for publishing releases, this is compatible with Watchtower when configured properly. I rewrote our docs regarding this, so be sure to review that and ensure you're using Watchtower correctly.
Config you should address (this isn't likely to fix your immediate issue)
ONE_DIR=1
is no longer a supported ENV in v14. The functionality is now implicit when a volume is mounted to/var/mail-state/
.version: "3"
suggests you're on a version of Docker Compose that is many years old. Since Docker Compose v2+ you do not need to have aversion
field, it does absolutely nothing for you.SYS_PTRACE
capability is not required. We dropped this quite some time ago. Yourcompose.yaml
is quite outdated.hostname: mail
+domainname: zedeler.dk
is another example. Look at our currentcompose.yaml
example in the repo (or view our docs), you should have all this set ashostname
only.domainname
is only for NIS domain config, it was a mistake by earlier maintainers.image: mailserver/docker-mailserver:latest
is a bad practice. You will encounter problems this way. Especially with Watchtower AFAIK. Use the proper semver tags. When major releases arrive, we sometimes break configuration compatibility, or expect manual changes on your end before you upgrade. We document these in theCHANGELOG.md
.
DMS is not like other containers where you may have a smoother upgrade process. Major versions are usually at least once annually, care must be taken when upgrading.
No support can be given when the issue cannot be reproduced, you have not provided sufficient details for a fresh DMS deployment that can fail in the same way.
Linux mail-server 5.4.0-65
The 5.4 kernel was originally released in Nov 2019. Your system has not been upgraded in a while.
No wonder you're on an old Docker. You should address this, it's almost 5 years old. There have been improvements since that benefit Docker IIRC, especially with Docker itself and all the bug fixes you're missing.
from docker-mailserver.
Please note that this response was created using generative AI, leveraging previously available information from the repository. This information may be helpful. However, it is our strong recommendation that you carefully consider the information before blindly applying it.
This response is generated only once - you will not be able to interact with the glime-ai.
It seems like the issue you're encountering with Fail2Ban is related to the missing /var/run/fail2ban
directory. This directory is typically created when Fail2Ban starts, but it appears that it might not be happening in your case.
Here are a few steps you can take to troubleshoot and potentially resolve this issue:
-
Manually Create the Directory:
You can try manually creating the directory inside the container and then restarting Fail2Ban. You can do this by executing the following commands:docker exec -it mail bash mkdir -p /var/run/fail2ban supervisorctl restart fail2ban
-
Check Permissions:
Ensure that the permissions for the/var/run
directory allow Fail2Ban to create its directory. You can check and modify the permissions if necessary:docker exec -it mail bash chmod 755 /var/run supervisorctl restart fail2ban
-
Review Configuration:
Double-check your Fail2Ban configuration files to ensure there are no misconfigurations that might be causing Fail2Ban to fail on startup. -
Logs and Debugging:
Increase the log verbosity to get more detailed information about why Fail2Ban is failing. You can set theLOG_LEVEL
environment variable todebug
ortrace
:environment: - LOG_LEVEL=debug
-
Update and Rebuild:
Ensure that you are using the latest version of the Docker Mailserver image. Sometimes, issues are resolved in newer releases. You can pull the latest image and rebuild your container:docker-compose pull docker-compose up -d
If the issue persists, you might want to check the debugging documentation for more detailed troubleshooting steps.
This comment was generated by Glime.
from docker-mailserver.
This issue has become stale because it has been open for 20 days without activity.
This issue will be closed in 10 days automatically unless:
- a maintainer removes the
meta/stale
label or adds thestale-bot/ignore
label - new activity occurs, such as a new comment
from docker-mailserver.
This issue was closed due to inactivity.
from docker-mailserver.
Related Issues (20)
- feature request: OAUTH - autoprovision accounts on first login using post-login scripting HOT 5
- bug report: Upgrading to v14 - postfix does not start HOT 12
- question: Why does `DEFAULT_RELAY_HOST` fail to authenticate? (DMS release prior to v14) HOT 3
- bug report: Postfix logs the error `fatal: bad string length 0 < 1: virtual_mailbox_base` HOT 4
- question: How to send email on port 465 without using a relay HOT 10
- Question: How to add reply-to header information HOT 1
- [TODO]: `SMTP_ONLY=1` feature should swap `virtual_mailbox_domains` with `virtual_alias_domains`
- bug report: `postfix-main.cf` is appending warnings to `/etc/postfix/main.cf` HOT 7
- [TODO]: Small tasks
- other: Proposal to change Getmail working directory HOT 8
- [TODO]: DMS v14 regression - Container restart support may fail due to unclean exit
- bug report: `postconf: fatal: open /etc/postfix/main.cf for reading: No such file or directory` HOT 2
- bug report: configured dovecot stats/metrics are always 0 HOT 6
- bug report: start-mailserver.sh says the alias will not be added twice HOT 4
- bug report: Rspamd DKIM private key file '/tmp/docker-mailserver/rspamd/dkim/$domain/$selector.private' is configured for usage, but does not appear to exist
- bug report: target/dovecot/auth-ldap.conf.ext missing in Dockerfile HOT 3
- other: Add `autoexpunge` to mailboxes HOT 6
- bug report: Dovecot compression not working HOT 11
- bug report: built-in documentation does not give an example for rspamd-dkim's keytype HOT 1
- How to allow anonymous email sending from my local network. HOT 1
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 docker-mailserver.