Unnamed repository; edit this file 'description' to name the repository.
Find a file
2023-09-18 21:22:26 +03:00
defaults Add readme and sort defaults 2023-09-18 21:20:07 +03:00
handlers Move and adapt opendkim configuration to own role 2023-09-18 18:53:40 +03:00
meta Move and adapt opendkim configuration to own role 2023-09-18 18:53:40 +03:00
tasks fix regex 2023-09-18 20:34:53 +03:00
templates remove selector and use custom selectors 2023-09-18 19:10:35 +03:00
README.md Add usage 2023-09-18 21:22:26 +03:00

ansible-role-opendkim_postfix

Configure OpenDKIM in your Postfix server and optionally publish your domain(s) public key(s). DKIM is a way of signing all your emails with your own key, ensuring other servers that the email is coming from a trustwhorthy (or a bit more trustworthy) server. It relays on publishing the public key in DNS records.

Requirements

An existing installation of Postfix.

Installation

Add to your requirements.yml file a role entry like:

  - name: opendkim_postfix
    src: ssh://git@repos.susurrando.com:7272/srv/git.repos/ansible-role-opendkim_postfix.git
    scm: git

Usage

Create a playbook like:

---
- name: Configure OpenDKIM in mail servers
  hosts: mail_servers[0]
  roles:
    - role: opendkim_postfix

Set at least a list of domain names with the variable mail_domains. If you have an OVH account for your DNS domains you can add the variables related (check defaults/main.yml).

Credits

Antonio J. Delgado 2023 https://gitlab.com/antoniodelgado