infothrill.nullmailer

Ansible Role: nullmailer

Build status Ansible Role

This is an Ansible role to install nullmailer, a simple email relay program.

Quick Instructions

  1. Create a requirements.yml file with the following code:

    - src: infothrill.nullmailer
      version: v3.1.0
    
  2. Install the role using:

    ansible-galaxy install -r requirements.yml -p ./roles/
    
  3. Use it in your playbook:

    - hosts: servers
        roles:
          - role: infothrill.nullmailer
    

Role Variables

  • nullmailer_mail_recipient: [email protected]
    This is the email address where all messages sent through nullmailer will go. Make sure this address is accepted by the nullmailer_relay_host.

  • nullmailer_relay_host: smtp.example.com
    This is the SMTP relay server that will handle all outgoing email.

  • nullmailer_relay_port: 465
    This is the port used to connect to the nullmailer_relay_host via SMTP.

  • nullmailer_relay_user: [email protected]
    This is the username for the SMTP authentication. It can be left blank if you don't need authentication (like in IP-based trust).

  • nullmailer_relay_pass: 50m3p455w0r6
    This is the password for SMTP authentication with the nullmailer_relay_host.

  • nullmailer_allmailfrom: [email protected]
    If set, this will change the sender address on all messages. Be careful using this, as it affects how undeliverable messages are handled.

  • nullmailer_remote_ssl: true|false
    Set to true to add SSL for remote connections (default is true).

  • nullmailer_remote_starttls: true|false
    Set to true to add STARTTLS support (default is false).

Dependencies

None.

License

MIT

Author Information

This role was created by Paul Kremer in 2018.

Changes

v3.2.0

  • Removed support for Ansible 4.

v3.1.0

  • nullmailer_relay_user can be left empty to skip authentication.
  • Removed test support for Debian Jessie and Python 3.7.
  • Added support for Ansible versions 4 and 5.

v3.0.0

  • Added options for --ssl and --starttls.
  • Upgraded to Molecule version 3.
  • Removed support for older Ansible versions and added test for Ubuntu 20.04.

Previous Versions

  • Various updates and drops of support for older versions of Python and Ansible, with improvements to testing frameworks and variable options.

v1.0.0

  • Initial release.
Informazioni sul progetto

An Ansible role to install nullmailer, a simple relay-only mail transport agent.

Installa
ansible-galaxy install infothrill.nullmailer
Licenza
mit
Download
8.3k
Proprietario
I was born in the 20th century and I will die in the 21st century