Ansible role to install and configure nullmailer relay MTA.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Minimum Ansible version:
2.10
Admin address as default sender
nullmailer_adminaddr: root
Define an address that's always used as sender
nullmailer_allmailfrom:
Force SMTP "AUTH LOGIN" mode instead of auto-detecting.
nullmailer_auth_login: false
List of default mail aliases
nullmailer_default_aliases:
- alias: mailer-daemon
recipient: postmaster
- alias: postmaster
recipient: root
- alias: nobody
recipient: root
- alias: hostmaster
recipient: root
- alias: usenet
recipient: root
- alias: news
recipient: root
- alias: webmaster
recipient: root
- alias: www
recipient: root
- alias: ftp
recipient: root
- alias: abuse
recipient: root
- alias: noc
recipient: root
- alias: security
recipient: root
nullmailer_default_aliases:
- alias: root
recipient: user1@example.com
- alias: postmaster
recipients:
- user1@example.com
- user2@example.com
- user3@example.com
Default domain used for nullmailer
nullmailer_defaultdomain: '{{ ansible_fqdn }}'
Enable nullmailer installation optionally
nullmailer_enabled: true
List of extra mail aliases
nullmailer_extra_aliases: []
nullmailer_extra_aliases:
- alias: root
recipient: user1@example.com
- alias: postmaster
recipients:
- user1@example.com
- user2@example.com
- user3@example.com
Host for remote connection
nullmailer_host:
Password for remote connection
nullmailer_password:
Port for remote connection
nullmailer_port:
Enforce a sendmail wrapper for old versions
nullmailer_sendmail_overwrite: "{{ nullmailer_allmailfrom | default(False) and ansible_distribution_version
is version('16.04', '<=') }}"
Enable SSL for remote connection
nullmailer_ssl: false
Enable STARTTLS for remote connection
nullmailer_tls: false
Username for remote connection
nullmailer_username:
nullmailer
- None
Apache-2.0