Maddy: Difference between revisions
imported>Onny Added tipps and tricks for mail server config checking |
imported>Onny Update rspamd example |
||
| Line 121: | Line 121: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
{ options, lib, ... }: { | |||
services.rspamd.enable = true; | services.rspamd.enable = true; | ||
services.maddy.config = builtins.replaceStrings ["msgpipeline local_routing {"] [''msgpipeline local_routing { | |||
check { | check { | ||
rspamd | rspamd | ||
} | }''] options.services.maddy.config.default; | ||
[...] | |||
</nowiki>}} | |||
The second part in this example replaces a part in the default config of the Maddy module and inserts the rspamd check to the message pipeline as described in the [https://maddy.email/reference/checks/rspamd upstream documentation]. | |||
=== Autoconfig === | === Autoconfig === | ||