nullmailer
nullmailer
Ansible role to install and configure nullmailer relay MTA.
Sponsor
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
Table of content
Requirements
- Minimum Ansible version:
2.10
Default Variables
nullmailer_adminaddr
Admin address as default sender
Default value
nullmailer_adminaddr: root
nullmailer_allmailfrom
Define an address that's always used as sender
Default value
nullmailer_allmailfrom:
nullmailer_auth_login
Force SMTP "AUTH LOGIN" mode instead of auto-detecting.
Default value
nullmailer_auth_login: false
nullmailer_default_aliases
List of default mail aliases
Default value
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
Example usage
nullmailer_default_aliases:
- alias: root
recipient: [email protected]
- alias: postmaster
recipients:
- [email protected]
- [email protected]
- [email protected]
nullmailer_defaultdomain
Default domain used for nullmailer
Default value
nullmailer_defaultdomain: '{{ ansible_fqdn }}'
nullmailer_enabled
Enable nullmailer installation optionally
Default value
nullmailer_enabled: true
nullmailer_extra_aliases
List of extra mail aliases
Default value
nullmailer_extra_aliases: []
Example usage
nullmailer_extra_aliases:
- alias: root
recipient: [email protected]
- alias: postmaster
recipients:
- [email protected]
- [email protected]
- [email protected]
nullmailer_host
Host for remote connection
Default value
nullmailer_host:
nullmailer_password
Password for remote connection
Default value
nullmailer_password:
nullmailer_port
Port for remote connection
Default value
nullmailer_port:
nullmailer_sendmail_overwrite
Enforce a sendmail wrapper for old versions
Default value
nullmailer_sendmail_overwrite: "{{ nullmailer_allmailfrom | default(False) and ansible_distribution_version
is version('16.04', '<=') }}"
nullmailer_ssl
Enable SSL for remote connection
Default value
nullmailer_ssl: false
nullmailer_tls
Enable STARTTLS for remote connection
Default value
nullmailer_tls: false
nullmailer_username
Username for remote connection
Default value
nullmailer_username:
Discovered Tags
nullmailer
Dependencies
- None
License
Apache-2.0
Author
Install
ansible-galaxy install rolehippie/nullmailer
License
apache-2.0
Downloads
52
Owner
Ansible role collection of Webhippie