36 lines
781 B
Plaintext
36 lines
781 B
Plaintext
|
# {{ ansible_managed }}
|
||
|
# Default settings that all others account inherit
|
||
|
defaults
|
||
|
auth on
|
||
|
tls on
|
||
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||
|
|
||
|
# Logging
|
||
|
{% if msmtp_log is defined %}
|
||
|
{% if msmtp_log == "syslog" %}
|
||
|
syslog on
|
||
|
{% elif msmtp_log == "file" and msmtp_logfile is defined %}
|
||
|
logfile {{msmtp_logfile}}
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
|
||
|
|
||
|
from {{msmtp_from}}
|
||
|
keepbcc on
|
||
|
|
||
|
{% if msmtp_accounts is defined %}
|
||
|
{% for msmtp_account in msmtp_accounts %}
|
||
|
#
|
||
|
account {{msmtp_account.account}}
|
||
|
host {{msmtp_account.host}}
|
||
|
port {{msmtp_account.port}}
|
||
|
auth {{msmtp_account.auth}}
|
||
|
user {{msmtp_account.user}}
|
||
|
password {{msmtp_account.password}}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
|
||
|
# Default account to use
|
||
|
account default : {{msmtp_default_account}}
|
||
|
|
||
|
aliases /etc/aliases
|