summaryrefslogtreecommitdiffstats
path: root/roles/amavis/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/amavis/tasks/main.yml')
-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
@@ -1,52 +1,59 @@
- name: Install amavis and its decoders
apt: pkg={{ item }}
with_items:
- amavisd-new
+ - libnet-ldap-perl
# Mail::DKIM
- libmail-dkim-perl
- gzip
- bzip2
- xz-utils
- lzop
- rpm2cpio
- pax
- binutils
- p7zip-full
- unrar-free
- arj
- nomarch
- zoo
- ripole
- cabextract
- unar
- tnef
notify:
- Restart Amavis
- 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
owner=root group=root
mode=0755
when: "'out' in group_names"
tags:
- genkey
- name: Generate a private key for DKIM signing
command: genkeypair.sh dkim --privkey=/var/lib/dkim/20140703.fripost.org.key -t rsa -b 1024
register: dkim
changed_when: dkim.rc == 0
failed_when: dkim.rc > 1
when: "'out' in group_names"
notify:
- Restart Amavis
- Publish the public key to the DNS zone
tags:
- genkey