add example how to write own rules
This commit is contained in:
parent
f9c80329b9
commit
64530f3fe8
1 changed files with 18 additions and 0 deletions
18
README.md
18
README.md
|
|
@ -55,3 +55,21 @@ rspamd can sign outgoing mails with dkim. the following steps are necessary:
|
||||||
|
|
||||||
## spam learning
|
## spam learning
|
||||||
To train ham/spam from move actions from/to junk folder, `imap_sieve` needs to be enabled in dovecot.
|
To train ham/spam from move actions from/to junk folder, `imap_sieve` needs to be enabled in dovecot.
|
||||||
|
|
||||||
|
## writing manual rules
|
||||||
|
example:
|
||||||
|
```
|
||||||
|
files:
|
||||||
|
"/etc/rspamd/local.d/rspamd.lua":
|
||||||
|
owner: _rspamd
|
||||||
|
group: root
|
||||||
|
mode: "0640"
|
||||||
|
content: |
|
||||||
|
-- Generica
|
||||||
|
config['regexp']['SUBJECT_GENERICA'] = {
|
||||||
|
re = 'Subject=/Die besten Generica/Hu',
|
||||||
|
description = 'Subject contains "Die besten Generica"',
|
||||||
|
score = 13.37,
|
||||||
|
group = 'headers'
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue