opendkim

galaxyproject.opendkim

Install and configure OpenDKIM on Debian- and RedHat-based systems.

Requirements

None

Role Variables

Most variables are self-explanatory, see the opendkim_* variables in the defaults file for a list. A few are explained here:

  • opendkim_keys: List of keys to generate or install. Each list item is a hash with keys domain, selector, and bits corresponding to the flags to opendkim-genkey, as well as secret and public. If secret and public are not specified, the key will be generated. If they are specified, the other keys are not required (although at least selector is probably necessary to specify the key filenames).

Dependencies

None, but the galaxyproject.postfix role can be used in conjunction with this role to configure Postfix for DKIM mail.

Example Playbook

- hosts: all
  vars:
    opendkim_keys:
      # generate a new key
      - selector: mail
        domain: example.org
        bits: 2048
      # provide an existing key
      - selector: lists
        domain: lists.example.org
        secret: |
          -----BEGIN RSA PRIVATE KEY-----
          MII...
          -----END RSA PRIVATE KEY-----
        public: "v=DKIM1; h=sha256; k=rsa; p=MII..."
  roles:
    - galaxyproject.opendkim

License

MIT

Author Information

About

OpenDKIM installation, configuration, and management for Linux

Install
ansible-galaxy install galaxyproject/ansible-opendkim
GitHub repository
License
Unknown
Downloads
127
Owner
Galaxy is an open, web-based platform for data-intensive research.