Rspamd: add greylisting option & code refactoring#3206
Rspamd: add greylisting option & code refactoring#3206georglauterbach merged 12 commits intomasterfrom
Conversation
Stylisting changes: 1. Added some log messages, changed log level for some messages 2. Removed a superflous message 3. Streamlined "calling-convention", i.e. a function should _internally_ check whether it needs to do setup (which was not the case for `__rspamd__setup_learning`) 4. Outsourced some functionality into separate functions (Redis & ClamAV setup) 5. Added a few comments 6. Changed the order in which functions appear in the file; the order now aligns with the other in which functions are called (helpers are at the top)
This should in the future replace Postgrey completely.
Redis should be started before Rspamd. I have no clue why I used another order in the first place.
|
Just FYI: Rspamd 3.5 landed on 17 Mar, so v12.0.0 will include the (currently) latest version of Rspamd 🥳🎉 This PR is intended for v12.1.0 though :) |
|
This PR is ready for review and merge now :) |
At a glance there is nothing alarming, but I've not got the time to do a thorough review as is usually the case with the Rspamd feature work especially. I did notice some concerns while collaborating on related docs, and I'll raise an issue about that for you to address separately. I can provide an approval, but it won't mean too much 😅 @casperklein do you want to provide a review, or should @georglauterbach go ahead and merge? |
|
@polarathene thanks for the info, much appreciated! Would you like to merge #3231 or this PR first? I tend towards merging #3231 first because the conflicts should be easier to resolve (if there are conflicts). |
There will be conflicts with rspamd docs page. I agree that #3231 should be merged first. |
|
I marked this with |
casperklein
left a comment
There was a problem hiding this comment.
LGTM. Just two minor things.
|
Documentation preview for this PR is ready! 🎉 Built with commit: e22688f |
❤️ I adjusted the PR according to the PR feedback and I'll be mergin this then :) |
Description
I highly advise reviewing the first commit separately! It is a pure refactoring.
Closes #3215
Type of change
Checklist:
docs/)