Blame

db82ad Ralph Thesen 2023-09-27 09:33:29
initial commit
1
# Mailu
2
3
## Spamd Training
4
5
In the `mailu-dovecot` container run e.g.
6
```bash
584373 Ralph Thesen 2024-03-23 12:17:46
fixed string
7
JUNKFOLDERS="/mail/mail@redimp.de/.Junk/cur/ /mail/christian@hillenkoetter.de/.Junk/cur/ /mail/christian@hillenkoetter.de/.whynospam/cur/"
db82ad Ralph Thesen 2023-09-27 09:33:29
initial commit
8
# fuzzy add
799e09 Ralph Thesen 2024-03-02 15:46:05
Updated paths
9
rspamc -h mailu-rspamd:11334 -P mailu -f 11 fuzzy_add $JUNKFOLDERS
db82ad Ralph Thesen 2023-09-27 09:33:29
initial commit
10
# learn spam
799e09 Ralph Thesen 2024-03-02 15:46:05
Updated paths
11
rspamc -h mailu-rspamd:11334 -P mailu learn_spam $JUNKFOLDERS
db82ad Ralph Thesen 2023-09-27 09:33:29
initial commit
12
```
13
14
Note: `learn error: all learn conditions denied learning ham in default classifier` is miss worded, with debug log on it reads:
15
`rspamd_stat_classifier_is_skipped: learn condition for classifier bayes returned: already in class spam; probability 100.00%; skip classifier`.
62df9a Ralph Thesen 2023-09-27 09:55:33
added fuzzy_check.conf notes
16
17
### fuzzy flags `-f`
18
19
Defined in `mailu-rspamd:/etc/rspamd/local.d/fuzzy_check.conf`
20
21
```cpp
22
...
23
fuzzy_map = {
24
LOCAL_FUZZY_DENIED {
25
# Local threshold
26
max_score = 20.0;
27
# Flag to match
28
flag = 11;
29
}
30
LOCAL_FUZZY_PROB {
31
max_score = 10.0;
32
flag = 12;
33
}
34
LOCAL_FUZZY_WHITE {
35
max_score = 2.0;
36
flag = 13;
37
}
38
}
39
```