Unnamed repository; edit this file 'description' to name the repository.
Find a file
2024-10-04 07:36:53 +03:00
defaults set default selector 2024-02-08 15:26:46 +02:00
handlers fix restart 2024-02-08 16:13:58 +02:00
meta Move and adapt opendkim configuration to own role 2023-09-18 18:53:40 +03:00
tasks Fix table files 2024-10-04 07:36:53 +03:00
templates fix keytbale 2024-04-04 00:16:02 +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