postfix needs opendkim access
[ansible.git] / roles / postfix / tasks / postfix.yml
index b1516091e78746690cbe7e4f92fcc4f61a17cb59..8367b89ce4db0e57bdf64abdf83430d307cdbaa8 100644 (file)
   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