bundles/rspamd: send dmarc reports
This commit is contained in:
parent
530462e9d2
commit
4ca0926546
5 changed files with 58 additions and 0 deletions
|
@ -49,6 +49,12 @@ svc_systemd = {
|
|||
'pkg_apt:clamav-freshclam',
|
||||
},
|
||||
},
|
||||
'rspamd-dmarc-report.timer': {
|
||||
'needs': {
|
||||
'file:/etc/systemd/system/rspamd-dmarc-report.service',
|
||||
'file:/etc/systemd/system/rspamd-dmarc-report.timer',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
|
@ -58,6 +64,22 @@ files = {
|
|||
'/usr/local/bin/telegraf-rspamd-plugin': {
|
||||
'mode': '0755',
|
||||
},
|
||||
'/etc/systemd/system/rspamd-dmarc-report.timer': {
|
||||
'content_type': 'mako',
|
||||
'context': {
|
||||
'hour': node.magic_number%24,
|
||||
'minute': node.magic_number%60,
|
||||
},
|
||||
'triggers': {
|
||||
'action:systemd-reload',
|
||||
'svc_systemd:rspamd-dmarc-report.timer:restart',
|
||||
},
|
||||
},
|
||||
'/etc/systemd/system/rspamd-dmarc-report.service': {
|
||||
'triggers': {
|
||||
'action:systemd-reload',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
@ -107,6 +129,7 @@ local_config_path = join(repo.path, 'bundles', 'rspamd', 'files', 'local.d')
|
|||
for f in listdir(local_config_path):
|
||||
files[f'/etc/rspamd/local.d/{f}'] = {
|
||||
'source': f'local.d/{f}',
|
||||
'content_type': 'mako',
|
||||
'triggers': {
|
||||
'svc_systemd:rspamd:restart',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue