-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
Text is appended to overrides/rspamd/milter_headers.conf when mounted in antispam container #2841
Comments
Since Mailu 2.0, the config in the overrides folder merges with existing config. This is not going to change. Overrides should not completely override the mailu config. This can result in Mailu config in rspamd to stop working. If you want the old behaviour, you can add the following host mount in docker-compose.yml:
and then place your override file in: |
Hmm. Testing with your config in the rspamd override.d folder, I only have these x-spam* headers:
This might be a bug in rspamd. You could consider creating an issue in the upstream project: https://github.com/rspamd/rspamd/issues |
Thanks — mailu's default config appears to be doing exactly the same as my override file anyway, so it should be displaying the If I remove my override file, and just use mailu's config, the
Quite what's happening to make it think (As for your second comment, I'm only getting the |
Issues not for bugs, enhancement requests or discussion go stale after 21 days of inactivity. This issue will be automatically closed after 14 days. Mark the issue as fresh by simply adding a comment to the issue. |
Does anybody know why I'm getting that type error when using the default? The lack of spam headers is preventing me from upgrading past 1.9… |
Issues not for bugs, enhancement requests or discussion go stale after 21 days of inactivity. This issue will be automatically closed after 14 days. Mark the issue as fresh by simply adding a comment to the issue. |
I got exactly the same problem. Got the error 'invalid config for milter_headers: field "skip_authenticated": expected type "boolean", got "table"' too. |
Issues not for bugs, enhancement requests or discussion go stale after 21 days of inactivity. This issue will be automatically closed after 14 days. Mark the issue as fresh by simply adding a comment to the issue. |
This is still an issue for me. I'm still stuck on 1.9 as a result, and it's stopping me from recommending Mailu as a solution for other people. |
Issues not for bugs, enhancement requests or discussion go stale after 21 days of inactivity. This issue will be automatically closed after 14 days. Mark the issue as fresh by simply adding a comment to the issue. |
Environment & Version
Environment
Version
2.0
Description
I have an override file for rspamd's milter_headers.conf in /mailu/overrides/rspamd/milter_headers.conf.
On upgrading to version 2.0, rspamd no longer processes this. Examining etc/rspamd/local.d/milter_headers.conf in the
antispam
container shows this:I'm not sure where the bit at the end comes from, but rspamd isn't expecting it do be there; it isn't added in version 1.9.
The upgrade documentation mentions that the override is mounted in a new location, but that doesn't seem to affect this.
This causes the
x-spam-level
header to not be added to incoming messages; as I'm using a Sieve rule rather than the built-in spam filtering to move spam (to work around #1552) this causes all spam to be unceremoniously dumped in my inbox. I've had to revert to 1.9 in order to keep things usable.Replication Steps
/mailu/overrides/rspamd/milter_headers.conf
:Observed behaviour
The
x-spam-status
header is not added to the received message.In the
antispam
container, the line.include(try=true,priority=1,duplicate=merge) "/overrides/milter_headers.conf"
has been added to the end of /etc/rspamd/local.d/milter_headers.conf.Expected behaviour
The
x-spam-status
header is added to the received message.In the
antispam
container, /etc/rspamd/local.d/milter_headers.conf contains exactly what was added in step 1.Logs
The text was updated successfully, but these errors were encountered: