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;
</nowiki>}}
Add following <code>check</code> part to your Maddy configuration at the beginning of the section <code>msgpipeline local_routing</code> as referenced by the default config.
<syntaxhighlight lang="json">
msgpipeline local_routing {


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].
</syntaxhighlight>


=== Autoconfig ===
=== Autoconfig ===