Rspamd: Difference between revisions

From NixOS Wiki
imported>Onny
Created page with "[https://rspamd.com Rspamd] is a fast, free and open-source spam filtering system. == Installation == To enable Rspamd add following line to your system configuration {{fil..."
 
imported>Asbachb
mNo edit summary
Line 16: Line 16:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
rspamd = {
services.rspamd = {
   enable = true;
   enable = true;
   overrides."whitelist.conf".text = ''
   overrides."whitelist.conf".text = ''

Revision as of 22:36, 9 April 2023

Rspamd is a fast, free and open-source spam filtering system.

Installation

To enable Rspamd add following line to your system configuration

/etc/nixos/configuration.nix
services.rspamd.enable = true;

Configuration

Whitelist domain

To whitelist a specific domain (in this example the domain example.org) which otherwise gets rejected by Rspamd for various reasons, this custom configuration override can be added:

/etc/nixos/configuration.nix
services.rspamd = {
  enable = true;
  overrides."whitelist.conf".text = ''
    whitelist_from {
      example.org = true;
    }
  '';
};