https://github.com/stuvusit/msmtp
Set up msmtp
https://github.com/stuvusit/msmtp
ansible ansible-role mail msmtp smtp
Last synced: about 1 month ago
JSON representation
Set up msmtp
- Host: GitHub
- URL: https://github.com/stuvusit/msmtp
- Owner: stuvusIT
- License: cc-by-sa-4.0
- Created: 2018-05-24T22:29:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-03T19:50:00.000Z (over 2 years ago)
- Last Synced: 2025-03-26T17:53:59.175Z (about 1 year ago)
- Topics: ansible, ansible-role, mail, msmtp, smtp
- Language: Jinja
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# msmtp
This role installs and configures msmtp for sending mail from the command line.
## Requirements
Ubuntu
## Role Variables
| 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 |
### Accounts
| 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.
## Example Playbook
```yml
- 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
```
## License
This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).
## Author Information
- [Janne Heß](https://github.com/dasJ)