summaryrefslogtreecommitdiffstats
path: root/roles/amavis/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-05-14 23:26:10 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:53:33 +0200
commitd87fefa9d38e6b8c99eafa16ea75dc8c879c41df (patch)
tree381285e5a22776de2c3683f6776f1be814760ca1 /roles/amavis/tasks
parentb5894c224ea973e8d80f249b4f82e9c381fbac6b (diff)
Upgrade amavis config to Jessie.
Diffstat (limited to 'roles/amavis/tasks')
-rw-r--r--roles/amavis/tasks/main.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/amavis/tasks/main.yml b/roles/amavis/tasks/main.yml
index da1f86a..a30772d 100644
--- a/roles/amavis/tasks/main.yml
+++ b/roles/amavis/tasks/main.yml
@@ -2,6 +2,7 @@
apt: pkg={{ item }}
with_items:
- amavisd-new
+ - libnet-ldap-perl
# Mail::DKIM
- libmail-dkim-perl
- gzip
@@ -25,11 +26,17 @@
- name: Add 'clamav' to the group 'amavis'
user: name=clamav groups=amavis append=yes
- register: r1
notify:
- Restart ClamAV
- Restart Amavis
+- name: Set AllowSupplementaryGroups=true
+ lineinfile: "dest=/etc/clamav/clamd.conf
+ regexp='^AllowSupplementaryGroups\\s'
+ line='AllowSupplementaryGroups true'"
+ notify:
+ - Restart ClamAV
+
- name: Create directory /var/lib/dkim
file: path=/var/lib/dkim
state=directory