Maddy: Difference between revisions
imported>Onny Add notes about SPF record |
imported>Onny Add info about spam filtering |
||
| Line 22: | Line 22: | ||
}; | }; | ||
}; | }; | ||
</nowiki>}} | </nowiki>}} | ||
| Line 57: | Line 56: | ||
mx1.example.org. 3600 IN TXT "v=spf1 mx ~all" | mx1.example.org. 3600 IN TXT "v=spf1 mx ~all" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Managing users and inboxes === | === Managing users and inboxes === | ||
| Line 64: | Line 64: | ||
# maddyctl creds create postmaster@example.org | # maddyctl creds create postmaster@example.org | ||
# maddyctl imap-acct create postmaster@example.org | # maddyctl imap-acct create postmaster@example.org | ||
</syntaxhighlight> | |||
=== Spam filtering === | |||
You can enable and use [[rspamd]] spam filtering daemon | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
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 { | |||
check { | |||
rspamd | |||
} | |||
[...] | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Mail Server]] | [[Category:Mail Server]] | ||