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
feature: provide initial Rspamd support #2902
Conversation
This will install the Rspamd (and Redis) package and provide minimal infrastructure to start working with Rspamd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better thanks 👍
Below is just an alternative revision suggested. Optional to apply.
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.
This is now ready to be merged (when @casperklein approves as well of course) ;) |
Documentation preview for this PR is ready! 🎉 Built with commit: 8e53d0d |
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/
)