spam: use Sieve for rewriting subject with Rspamd & SA/Amavis#3820
spam: use Sieve for rewriting subject with Rspamd & SA/Amavis#3820georglauterbach merged 26 commits intomasterfrom
Conversation
c4e20a3 to
3f7a492
Compare
This commit is just altering the documentation and gives an impression on the upcoming changes.
If I am not mistaken, the configuration I am checking for is the one we should emit a warning about: in case junk mail is moved to the inbox and no rewriting happens, we should check whether this is actually what the user wants.
This helper will be used in un upcoming commit that adds testing functionality. In a follow-up PR, the helper will be applied in all tests.
3f7a492 to
94d8f0f
Compare
|
I have reset the changes and started afresh (hence the force push, and, a need to re-review everything 😆). The new var PS: @polarathene noted there is no equivalent of |
|
For visibility / discoverability, since the feedback has been hidden, related Sieve insights / advice related to spam:
|
In the past users had done the same workaround approach by setting I don't know how useful either of the two settings really are for users to configure though, just that we previously defaulted to I don't know how well rspamd |
- counterpart to `_file_exists_in_container` - usage was adjusted in all Rspamd-related tests and in Amavis tests
|
@polarathene It seems like #3838 broke our docs preview deployment (https://github.com/docker-mailserver/docker-mailserver/actions/runs/7679465094/job/20930390342)? |
🚀
👍🏼 |
Oh damn, I didn't pay attention to the difference in similar parameter names |
polarathene
left a comment
There was a problem hiding this comment.
@casperklein should be given at least 48 hours to express an interest in any review feedback.
- Sorry about all the notification noise 😅
- See the changelog entry of this PR first, if you don't have any issue with what is proposed there, no further input required beyond an approval 👍
|
I've read #3804. Did I understand it correctly, that rspam is not capable of adding a X-SPAM Header and at the same time changing the subject? That's a pity 😆 I really don't like when features are reinvented (in sieve) that are build-in and working perfectly in SA 😞 IMO this is the job of a spam filter and not dovecots.. Code LGTM. Just one thing, see above. |
|
Documentation preview for this PR is ready! 🎉 Built with commit: 6364495 |
Indeed; I originally assumed this was the case. It really is a shame..
I agree, but here I guess "it is what it is" fits most. With this change, we're one step closer to being agnostic to the underlying anti-spam (a silver lining), though. |
|
Hey! Thanks very much for this. Is there a summary somewhere of what the breaking changes will be for this? Many thanks, again! 🥳 |
|
Yes, there is - have a look at our changelog ( |
|
For reference here is the rspamd issue report I was referring to when I said that I did think that this PR would probably fix my spam rewrote emails not being moved to Spam folder : rspamd/rspamd#3078 (comment) To be confirmed |
PR - docker-mailserver/docker-mailserver#3820 Signed-off-by: Aldo Maria Vizcaino <[email protected]>
PR - docker-mailserver/docker-mailserver#3820 Signed-off-by: Aldo Maria Vizcaino <[email protected]>
Description
This PR reworks subject-rewriting. It disables the default
rewrite_subjectaction in Rspamd and renamesSA_SPAM_SUBJECTtoSPAM_SUBJECT. Under the hood, I utilized Dovecot sieve scripts to adjust theSubjectheader, which seems to work quite nicely.Review commit by commit.
@polarathene The commit history contains d0eccd3, which is not strictly related to this PR, but the new tests (like 'SPAM_SUBJECT works') make use of it. I hope it's not too far out of the boundaries to justify another PR. I have only adjusted the Rspamd test file to keep the diff minimal and will provide a follow-up to adjust the whole test suite.
Fixes #3804
Fixes #3323
Type of change
Checklist:
docs/)CHANGELOG.md