mjanser.ssmtp

Ansible Role: ssmtp

This Ansible role installs and sets up ssmtp on Fedora.

Requirements

No requirements needed.

Role Variables

Here are the variables you can use, along with their default values:

  • ssmtp_recipient: postmaster
  • ssmtp_allow_from_override: yes
  • ssmtp_mailhub: mail
  • ssmtp_use_tls: yes
  • ssmtp_auth_username: ~
  • ssmtp_auth_password: ~

Recipient

All emails for users with IDs less than 1000 will be sent to the address set in ssmtp_recipient. If this is empty, it will not send to anyone.

Override From Line

You can use ssmtp_allow_from_override to allow or prevent changing the From line in emails. If it is off, the From line will always show the username and hostname, and cannot be changed. To allow custom From lines, set ssmtp_allow_from_override to yes.

Relay Server

To send emails, you need to define a relay mail server in ssmtp_mailhub. If this server does not support TLS, change ssmtp_use_tls to no.

Most mail servers need a username and password for sending emails. You can set these credentials in ssmtp_auth_username and ssmtp_auth_password.

Dependencies

No dependencies.

Example Playbook

- hosts: all
  roles:
    - { role: mjanser.ssmtp }

License

MIT

Informazioni sul progetto

Installs and configures ssmtp on Fedora

Installa
ansible-galaxy install mjanser.ssmtp
Licenza
mit
Download
352
Proprietario