kbrebanov.ssmtp
ssmtp
Installs and configures sSMTP
Requirements
This role requires Ansible 1.4 or higher.
Role Variables
| Name | Default | Description |
|---|---|---|
| ssmtp_root | postmaster | The person who gets all mail for userids < 1000. Make this empty to disable rewriting. |
| ssmtp_mailhub | The place where the mail goes. The actual machine name is required no MX records are consulted. | |
| ssmtp_rewrite_domain | "{{ ansible_domain }}" | Where will the mail seem to come from? |
| ssmtp_hostname | "{{ ansible_hostname }}" | The full hostname |
| ssmtp_from_live_override | 'NO' | Are users allowed to set their own From: address? ('YES' or 'NO') |
| ssmtp_revaliases | [] | Array of hashes containing reverse aliases information |
| ssmtp_auth_user | '' | Authentication username |
| ssmtp_auth_pass | '' | Authentication password |
| ssmtp_auth_method | '' | Authentication method |
| ssmtp_use_tls | false | Enable or disable TLS |
| ssmtp_use_starttls | false | Enable or disable STARTTLS |
Dependencies
None
Example Playbook
Install sSMTP
- hosts: all
roles:
- { role: kbrebanov.ssmtp }
Install sSMTP specifying a mailhub
- hosts: all
roles:
- { role: kbrebanov.ssmtp, ssmtp_mailhub: mail.example.com }
Install sSMTP specifying reverse alias
- hosts: all
vars:
ssmtp_revaliases:
- local_account: root
outgoing_address: [email protected]
mailhub: mailhub.your.domain
port: 25
roles:
- kbrebanov.ssmtp
License
BSD
Author Information
Kevin Brebanov
Install
ansible-galaxy install kbrebanov.ssmtpLicense
bsd-2-clause
Downloads
114
Owner
Nothing to see here. Move along.
