Initial commit

This commit is contained in:
Alex 2020-08-18 16:20:06 +02:00
commit 4a54f65c82
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
4 changed files with 47 additions and 0 deletions

15
tasks/main.yml Normal file
View File

@ -0,0 +1,15 @@
- name: Copy rspamd configs
loop:
- 'options.inc'
- 'milter_headers.conf'
- 'dmarc.conf'
template:
src: '{{ item }}'
dest: '/etc/rspamd/local.d/{{ item }}'
follow: yes
owner: root
group: root
mode: 730
tags:
- rspamd
notify: Run service actions

4
templates/dmarc.conf Normal file
View File

@ -0,0 +1,4 @@
actions = {
quarantine = "add_header";
reject = "reject";
}

View File

@ -0,0 +1,27 @@
extended_spam_headers = true;
authenticated_headers = ["authentication-results"];
spf_symbols {
pass = "R_SPF_ALLOW";
fail = "R_SPF_FAIL";
softfail = "R_SPF_SOFTFAIL";
neutral = "R_SPF_NEUTRAL";
temperror = "R_SPF_DNSFAIL";
none = "R_SPF_NA";
permerror = "R_SPF_PERMFAIL";
}
dkim_symbols {
pass = "R_DKIM_ALLOW";
fail = "R_DKIM_REJECT";
temperror = "R_DKIM_TEMPFAIL";
none = "R_DKIM_NA";
permerror = "R_DKIM_PERMFAIL";
}
dmarc_symbols {
pass = "DMARC_POLICY_ALLOW";
permerror = "DMARC_BAD_POLICY";
temperror = "DMARC_DNSFAIL";
none = "DMARC_NA";
reject = "DMARC_POLICY_REJECT";
softfail = "DMARC_POLICY_SOFTFAIL";
quarantine = "DMARC_POLICY_QUARANTINE";
}

1
templates/options.inc Normal file
View File

@ -0,0 +1 @@
filters = "chartable,dkim,spf,dmarc,milter_headers,phishing";