add dmarc reporting
This commit is contained in:
parent
d3ede9d2e2
commit
de5bf331f9
5 changed files with 105 additions and 9 deletions
48
README.md
48
README.md
|
|
@ -2,6 +2,16 @@
|
|||
|
||||
## configuration
|
||||
|
||||
```
|
||||
rspamd:
|
||||
redis: false
|
||||
train_from_junk: false
|
||||
dmarc_reporting:
|
||||
enabled: false
|
||||
local_configs: {}
|
||||
```
|
||||
|
||||
|
||||
### redis
|
||||
configure redis and tell rspamd to use it:
|
||||
```
|
||||
|
|
@ -21,15 +31,7 @@ redis:
|
|||
maxmemory_policy: volatile-ttl
|
||||
|
||||
rspamd:
|
||||
local_configs:
|
||||
redis.conf:
|
||||
servers: /var/run/redis/redis-rspamd.sock
|
||||
classifier-bayes.conf:
|
||||
backend: redis
|
||||
servers: /var/run/redis/redis-rspamd-bayes.sock
|
||||
worker-fuzzy.inc:
|
||||
backend: redis
|
||||
servers: /var/run/redis/redis-rspamd-fuzzy.sock
|
||||
redis: true
|
||||
```
|
||||
|
||||
### milter
|
||||
|
|
@ -53,9 +55,37 @@ rspamd can sign outgoing mails with dkim. the following steps are necessary:
|
|||
* create/update selector in `/etc/rspamd/dkim_selectors.map`: `<domain> <selector>`
|
||||
|
||||
|
||||
## dmarc reporting
|
||||
|
||||
rspamd can be instructed to send dmarc reports:
|
||||
```
|
||||
rspamd:
|
||||
dmarc_reporting:
|
||||
enabled: true # Enable reports in general
|
||||
email: 'dmarc-reports-noreply@example.de' # Source of DMARC reports
|
||||
domain: 'example.de' # Domain to serve
|
||||
org_name: 'example' # Organisation
|
||||
# Optional parameters
|
||||
bcc_addrs: # additional addresses to copy on reports
|
||||
- "postmaster@example.de"
|
||||
report_local_controller: false # Store reports for local/controller scans (for testing only)
|
||||
helo: 'rspamd.localhost' # Helo used in SMTP dialog
|
||||
smtp: '127.0.0.1' # SMTP server IP
|
||||
smtp_port: 25 # SMTP server port
|
||||
from_name: 'rspamd' # SMTP FROM
|
||||
msgid_from: 'rspamd' # Msgid format
|
||||
max_entries: 1000
|
||||
keys_expire: 172800 # 2 days
|
||||
```
|
||||
|
||||
## spam learning
|
||||
To train ham/spam from move actions from/to junk folder, `imap_sieve` needs to be enabled in dovecot.
|
||||
|
||||
```
|
||||
rspamd:
|
||||
train_from_junk: true
|
||||
```
|
||||
|
||||
## writing manual rules
|
||||
example:
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue