Blame
|
1 | # Mailu |
||||||
| 2 | ||||||||
| 3 | ## Spamd Training |
|||||||
| 4 | ||||||||
| 5 | In the `mailu-dovecot` container run e.g. |
|||||||
| 6 | ```bash |
|||||||
| 7 | # fuzzy add |
|||||||
| 8 | rspamc -h mailu-rspamd:11334 -P mailu -f 11 fuzzy_add /mail/mail\@redimp.de/.Junk/cur/ |
|||||||
| 9 | # learn spam |
|||||||
| 10 | rspamc -h mailu-rspamd:11334 -P mailu learn_spam /mail/mail\@redimp.de/.Junk/cur/ |
|||||||
| 11 | ``` |
|||||||
| 12 | ||||||||
| 13 | Note: `learn error: all learn conditions denied learning ham in default classifier` is miss worded, with debug log on it reads: |
|||||||
| 14 | `rspamd_stat_classifier_is_skipped: learn condition for classifier bayes returned: already in class spam; probability 100.00%; skip classifier`. |
|||||||
|
15 | |||||||
| 16 | ### fuzzy flags `-f` |
|||||||
| 17 | ||||||||
| 18 | Defined in `mailu-rspamd:/etc/rspamd/local.d/fuzzy_check.conf` |
|||||||
| 19 | ||||||||
| 20 | ```cpp |
|||||||
| 21 | ... |
|||||||
| 22 | fuzzy_map = { |
|||||||
| 23 | LOCAL_FUZZY_DENIED { |
|||||||
| 24 | # Local threshold |
|||||||
| 25 | max_score = 20.0; |
|||||||
| 26 | # Flag to match |
|||||||
| 27 | flag = 11; |
|||||||
| 28 | } |
|||||||
| 29 | LOCAL_FUZZY_PROB { |
|||||||
| 30 | max_score = 10.0; |
|||||||
| 31 | flag = 12; |
|||||||
| 32 | } |
|||||||
| 33 | LOCAL_FUZZY_WHITE { |
|||||||
| 34 | max_score = 2.0; |
|||||||
| 35 | flag = 13; |
|||||||
| 36 | } |
|||||||
| 37 | } |
|||||||
| 38 | ``` |
|||||||
