Installs and configures sSMTP
This role requires Ansible 1.4 or higher.
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 |
None
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: your_login@your.domain
mailhub: mailhub.your.domain
port: 25
roles:
- kbrebanov.ssmtp
BSD
Kevin Brebanov