mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-11-29 17:45:17 +01:00
See https://www.rfc-editor.org/rfc/rfc8617 https://docs.rspamd.com/modules/arc Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
- name: Install rspamd
|
|
pacman: name=rspamd state=present
|
|
|
|
- name: Install config
|
|
copy: src=local.d/ dest=/etc/rspamd/local.d/ owner=root group=root mode=0644
|
|
notify:
|
|
- Reload rspamd
|
|
|
|
- name: Install dkim_signing.conf
|
|
template: src=dkim_signing.conf.j2 dest=/etc/rspamd/local.d/dkim_signing.conf owner=root group=root mode=0644
|
|
notify:
|
|
- Reload rspamd
|
|
|
|
- name: Install arc_signing.conf
|
|
template: src=arc_signing.conf.j2 dest=/etc/rspamd/local.d/arc.conf owner=root group=root mode=0644
|
|
when: rspamd_enable_arc
|
|
notify:
|
|
- Reload rspamd
|
|
|
|
- name: Create rspamd dkim directory
|
|
file: path=/var/lib/rspamd/dkim state=directory owner=rspamd group=rspamd mode=0750
|
|
|
|
# For this to run, you need to generate the keys first
|
|
# run
|
|
#
|
|
# rspamadm dkim_keygen -s dkim-ed25519 -b 0 -d archlinux.org -t ed25519 -k archlinux.org.dkim-ed25519.key
|
|
# rspamadm dkim_keygen -s dkim-rsa -b 4096 -d archlinux.org -t rsa -k archlinux.org.dkim-rsa.key
|
|
#
|
|
# the ouput gives you the DNS entries to add to the terraform files.
|
|
# The keys generated need to go to the vault:
|
|
# roles/rspamd/files/archlinux.org.dkim-rsa.key.vault
|
|
# roles/rspamd/files/archlinux.org.dkim-ed25519.key.vault
|
|
#
|
|
- name: Install DKIM keys
|
|
copy: src={{ item }}.vault dest=/var/lib/rspamd/dkim/{{ item }} owner=rspamd group=rspamd mode=0600
|
|
loop:
|
|
- "{{ rspamd_dkim_domain }}.dkim-ed25519.key"
|
|
- "{{ rspamd_dkim_domain }}.dkim-rsa.key"
|
|
notify:
|
|
- Reload rspamd
|
|
|
|
- name: Start and enable rspamd
|
|
service: name=rspamd enabled=yes state=started
|