maddy

Fork https://github.com/foxcpp/maddy

git clone git://git.lin.moe/go/maddy.git

 1# rspamd
 2
 3maddy has direct support for rspamd HTTP protocol. There is no need to use
 4milter proxy.
 5
 6If rspamd is running locally, it is enough to just add `rspamd` check
 7with default configuration into appropriate check block (probably in
 8local_routing):
 9```
10check {
11    ...
12    rspamd
13}
14```
15
16You might want to disable builtin SPF, DKIM and DMARC for performance
17reasons but note that at the moment, maddy will not generate
18Authentication-Results field with rspamd results.
19
20If rspamd is not running on a local machine, change api_path to point
21to the "normal" worker socket:
22
23```
24check {
25    ...
26    rspamd {
27        api_path http://spam-check.example.org:11333
28    }
29}
30```
31
32Default mapping of rspamd action -> maddy action is as follows:
33
34- "add header" => Quarantine
35- "rewrite subject" => Quarantine
36- "soft reject" => Reject with temporary error
37- "reject" => Reject with permanent error
38- "greylist" => Ignored