summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-09-08 02:26:58 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-09-08 02:27:02 +0200
commit79c0fb2b2cfaa1671ba069e0235de1c87f59cb61 (patch)
tree370852500bbe2ccc6f8220f7efecfc189ddfc473 /roles
parenteeef279d8f4d3b7ddff5eae47e609c4e138140ce (diff)
DKIM key generation: Adjust ownership.
As of bullseye amavis needs the private key material to be reabled by the 'amavis' user.
Diffstat (limited to 'roles')
-rw-r--r--roles/amavis/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/amavis/tasks/main.yml b/roles/amavis/tasks/main.yml
index 79c973c..7fc44c7 100644
--- a/roles/amavis/tasks/main.yml
+++ b/roles/amavis/tasks/main.yml
@@ -50,7 +50,7 @@
- dkim
- name: Generate a private key for DKIM signing
- command: genkeypair.sh dkim --privkey="/etc/amavis/dkim/{{ item.s }}:{{ item.d }}.pem" -t rsa -b 2048
+ command: genkeypair.sh dkim --owner=amavis --group=root --privkey="/etc/amavis/dkim/{{ item.s }}:{{ item.d }}.pem" -t rsa -b 2048
with_items: "{{ (dkim_keys[inventory_hostname_short] | default({})).values() | list }}"
register: dkim
changed_when: dkim.rc == 0