infothrill.nullmailer
Ansible Role: nullmailer
This is an Ansible role to install nullmailer, a simple email relay program.
Quick Instructions
Create a
requirements.yml
file with the following code:- src: infothrill.nullmailer version: v3.1.0
Install the role using:
ansible-galaxy install -r requirements.yml -p ./roles/
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 thenullmailer_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 thenullmailer_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 thenullmailer_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 totrue
to add SSL for remote connections (default istrue
).nullmailer_remote_starttls:
true|false
Set totrue
to add STARTTLS support (default isfalse
).
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.
An Ansible role to install nullmailer, a simple relay-only mail transport agent.
ansible-galaxy install infothrill.nullmailer