feature: provide initial Rspamd support#2902
Merged
georglauterbach merged 6 commits intomasterfrom Jan 5, 2023
Merged
Conversation
This will install the Rspamd (and Redis) package and provide minimal infrastructure to start working with Rspamd.
polarathene
requested changes
Nov 16, 2022
polarathene
approved these changes
Nov 26, 2022
|
|
||
| Rspamd-support is under active development. Be aware that breaking changes can happen at any time. Moreover, you will _currently_ need to adjust Postfix's configuration _yourself_ if you want to use Rspamd; you may use [`user-patches.sh`][docs-userpatches]. | ||
|
|
||
| You will need to add Rspamd to the `smtpd_milters` in Postfix's `main.cf`. This can easily be done with `sed`: `sed -i -E 's|^(smtpd_milters = .*)|\1,inet:localhost:11332|g' /etc/postfix/main.cf`. Moreover, have a look at the [integration of Rspamd into Postfx](https://rspamd.com/doc/integration.html). You will need to provide additional configuration files at the moment (to `/etc/rspamd/local.d/`) to make Rspamd run in milter-mode. |
Member
There was a problem hiding this comment.
This is better thanks 👍
Below is just an alternative revision suggested. Optional to apply.
Suggested change
| You will need to add Rspamd to the `smtpd_milters` in Postfix's `main.cf`. This can easily be done with `sed`: `sed -i -E 's|^(smtpd_milters = .*)|\1,inet:localhost:11332|g' /etc/postfix/main.cf`. Moreover, have a look at the [integration of Rspamd into Postfx](https://rspamd.com/doc/integration.html). You will need to provide additional configuration files at the moment (to `/etc/rspamd/local.d/`) to make Rspamd run in milter-mode. | |
| Required adjustments ([Integration of Rspamd for Postfix](https://rspamd.com/doc/integration.html)): | |
| - Configure Postfix to include Rspamd as an smtpd milter (`main.cf:smtpd_milters`): | |
| `sed`: `sed -i -E 's|^(smtpd_milters = .*)|\1,inet:localhost:11332|g' /etc/postfix/main.cf` | |
| - You will need to provide additional configuration files at the moment (to `/etc/rspamd/local.d/`) to make Rspamd run in milter-mode. |
The 2nd step still seems vague for a user to follow. I'm not going to block on that however as this is temporary docs for a feature not officially supported.
Member
Author
|
This is now ready to be merged (when @casperklein approves as well of course) ;) |
7 tasks
Contributor
|
Documentation preview for this PR is ready! 🎉 Built with commit: 8e53d0d |
casperklein
approved these changes
Jan 4, 2023
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This will install the Rspamd (and Redis) package and provide minimal infrastructure to start working with Rspamd. Notably, this is really just bare-minimum infrastructure, but it allows users to use Rspamd as of now. Users will need to adjust Postfix's configuration themselves - a PR that provides ease of use will follow. This is completely backwards compatible.
Type of change
Checklist:
docs/)