web-education.postfix-dkim

ansible-dkim

Debian上でのpostfix設定とopendkim用のAnsibleロール

例のプレイブック

---
- name: Postfixとopendkimのインストールと設定
  hosts: mail
  remote_user: root
  vars_files: ['var_mail.yml']
  pre_tasks:
    - name: /etc/opendkim/keys ディレクトリの確認
      file: path=/etc/opendkim/keys state=directory 

    - name: DKIMプライベートキーのコピー
      copy: src=keys/{{ item.key }} dest=/etc/opendkim/keys mode=0400
      with_items: "{{ dkim_domains }}"
  roles:
  - { role: ansible-dkim }

var_mail.yml:

---
admin_email: '[email protected]'
postfix_myhostname: 'mailing.domain.com' # ehlo ホスト名
dkim_domains: 
  - domain: 'domain1.com'
    selector: 'domain1'
    key: 'domain1.private'
  - domain: 'domain2.fr'
    selector: 'domain2'
    key: 'domain2.private'
プロジェクトについて

A role to install and configure Postfix and OpenDKIM for multiple domains with multiple domain keys

インストール
ansible-galaxy install web-education.postfix-dkim
ライセンス
bsd-3-clause
ダウンロード
81
所有者
Startup EdTech, notre vocation est de concevoir des solutions qui font évoluer les pratiques pédagogiques et favorisent la réussite scolaire