Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
N
nixos-mailserver
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 45
    • Issues 45
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 11
    • Merge Requests 11
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • simple-nixos-mailserver
  • nixos-mailserver
  • Merge Requests
  • !164

Merged
Opened Apr 03, 2020 by symphorien@symphorienContributor

rspamd: configure redis backend

  • Overview 44
  • Commits 4
  • Pipelines 10
  • Changes 5

The sqlite backed is deprecated, and the redis backend is the default since rspamd 2.0.

Not having redis started results in such errors:

rspamd_redis_init: cannot init redis backend for BAYES_SPAM

To migrate the sqlite database, run

rspamadm statconvert --spam-db /var/lib/rspamd/bayes.spam.sqlite --ham-db /var/lib/rspamd/bayes.ham.sqlite -h 127.0.0.1:6379 --symbol-ham BAYES_HAM --symbol-spam BAYES_SPAM

The current module implements the recommended configuration that this utility prints out.

Without further intervention, rspamd uses the redis database at index 0. I don't know what that means, but I expect you must ensure nothing else uses database 0.

The above points probably should be added to some form of release notes. I couldn't find where they are, though.

Since rspamd is the default on NixOS 20.03, this should be merged before the next release.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: simple-nixos-mailserver/nixos-mailserver!164
Source branch: rspamd-redis