bundles/rspamd: send dmarc reports
This commit is contained in:
parent
530462e9d2
commit
4ca0926546
5 changed files with 58 additions and 0 deletions
10
bundles/rspamd/files/local.d/dmarc.conf
Normal file
10
bundles/rspamd/files/local.d/dmarc.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
reporting {
|
||||
# Required attributes
|
||||
enabled = true; # Enable reports in general
|
||||
email = 'dmarc@${node.metadata.get('hostname')}'; # Source of DMARC reports
|
||||
domain = '${node.metadata.get('hostname')}'; # Domain to serve
|
||||
org_name = 'kunbox.net'; # Organisation
|
||||
smtp = '127.0.0.1'; # SMTP server IP
|
||||
smtp_port = 25; # SMTP server port
|
||||
from_name = 'rspamd @ ${node.metadata.get('hostname')}'; # SMTP FROM
|
||||
}
|
7
bundles/rspamd/files/local.d/options.inc
Normal file
7
bundles/rspamd/files/local.d/options.inc
Normal file
|
@ -0,0 +1,7 @@
|
|||
dmarc {
|
||||
reporting = true;
|
||||
actions = {
|
||||
quarantine = "add_header";
|
||||
reject = "reject";
|
||||
}
|
||||
}
|
9
bundles/rspamd/files/rspamd-dmarc-report.service
Normal file
9
bundles/rspamd/files/rspamd-dmarc-report.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Send rspamd dmarc reports
|
||||
After=network.target
|
||||
Requires=rspamd.service
|
||||
|
||||
[Service]
|
||||
User=_rspamd
|
||||
Group=_rspamd
|
||||
ExecStart=/usr/bin/rspamadm dmarc_report
|
9
bundles/rspamd/files/rspamd-dmarc-report.timer
Normal file
9
bundles/rspamd/files/rspamd-dmarc-report.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Trigger sending dmarc reports
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* ${hour}:${minute}:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Add table
Add a link
Reference in a new issue