This role installs and configures msmtp for sending mail from the command line.
Ubuntu
Name | Default / Mandatory | Description |
---|---|---|
msmtp_defaults |
{} |
Key-Value dict of msmtp configuration items |
msmtp_accounts |
{} |
Name-Values dict of msmtp accounts. See below for possible values |
msmtp_aliases |
{} |
Local-Remote dict of msmtp aliases. The remote end may be a list for multiple recipients |
Name | Default / Mandatory | Description |
---|---|---|
parents |
List of parent accounts this account inherits settings from |
All other options are directly fed directly to the corresponding msmtp account section.
- hosts: mail-senderes
roles:
- role: msmtp
msmtp_defaults:
auth: "on"
tls: "on"
tls_trust_file: /etc/ssl/certs/ca-certificates.crt
msmtp_accounts:
default:
host: mail.example.com
port: 587
private:
user: jdoe-private
password: secret
work:
parents: private
user: jdoe
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.