postfix needs opendkim access
authorRalf Jung <post@ralfj.de>
Sat, 5 May 2018 15:23:13 +0000 (17:23 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 5 May 2018 15:30:49 +0000 (17:30 +0200)
roles/postfix/tasks/postfix.yml

index b1516091e78746690cbe7e4f92fcc4f61a17cb59..8367b89ce4db0e57bdf64abdf83430d307cdbaa8 100644 (file)
   loop:
   - virtual_alias_map
   - transport_map
   loop:
   - virtual_alias_map
   - transport_map
+- name: give postfix user access to opendkim
+  when: postfix.opendkim is defined
+  user:
+    name: postfix
+    groups: opendkim
+    append: yes
+  notify: postfix
 # cronjob
 - name: delete old local-mail cronjob
   file: path=/etc/cron.daily/local-mail state=absent
 # cronjob
 - name: delete old local-mail cronjob
   file: path=/etc/cron.daily/local-mail state=absent