diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-05-14 23:26:10 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:53:33 +0200 |
commit | d87fefa9d38e6b8c99eafa16ea75dc8c879c41df (patch) | |
tree | 381285e5a22776de2c3683f6776f1be814760ca1 /roles/amavis/tasks | |
parent | b5894c224ea973e8d80f249b4f82e9c381fbac6b (diff) |
Upgrade amavis config to Jessie.
Diffstat (limited to 'roles/amavis/tasks')
-rw-r--r-- | roles/amavis/tasks/main.yml | 9 |
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 |