-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rsyslog fills up /var/log/maillog with GBs in seconds in a CentOS 7 container #21
Comments
what is in your mail.log? |
Here's a sample
|
aha! interesting! We will have a look asap, but it could take a small while... |
Just wondering if this issue is likely to be fixed soon? Or if there is a simple workaround? Thanks. |
let me check - actually, there was very little demand for the containers and also nobody opted to help with maintaining them ... which in turns means I need to do this as well. My todo list is already too long ;-) Any help would really be appreciated. That said, I'll try to have a look either today or tomorrow. |
ah, wait, this is not for one of our contains but more a general rsyslog config question (for a home-grown container)? |
I think so, yes. I'm simply adding a mail server to the container rsyslog_base_centos7 and accepting the default configuration for rsyslog. |
I've just diffed rsyslong.conf with a copy that comes with a normal CentOS 7 installation. I've found if I delete the following lines, the problem seems to go away:
|
I guess you just don't see it in this case. What this does is send the log messages to stdout, where Docker picks them up by default. Do you use another pickup mechanism? |
I don't know anything about pickup mechanisms. I'm setting up and running the container exactly as described in the first post, so I assume I'm not using one. Executing |
Hi, I'm having the same issue in a docker container running CentOS 8. I pulled the image centos:centos8 from the Docker Hub and installed rsyslog per instructions in this Dockerfile. I also tried with the official image rsyslog/rsyslog_base_centos7 but the same happened. As recommended here, I removed these lines from my rsyslog.conf file:
And the maillog file stopped filling up and I'm still able to see send messages in /var/log/messages. |
I'm trying to set up an IMAP mail server in a Docker container running CentOS 7 and I'm encountering the problem as described in the title.
To reproduce use this Dockerfile:
and run.sh:
And run with:
/var/log/maillog just keeps filling up very quickly, and the container is unusable. The problem didn't occur when I was using a CentOS 6 container.
I assume something's misconfigured somewhere. Can anyone help?
The text was updated successfully, but these errors were encountered: