Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
CASSONNET Guillaume | 6a87854b47 | |
CASSONNET Guillaume | d669ce9dfe | |
Gitouche | 8954e574bf | |
Gitouche | 7f0ea55dc6 |
|
@ -1,7 +1,12 @@
|
|||
---
|
||||
msmtp_version: 1.8.24-1
|
||||
msmtp_version: 1.8.25-1
|
||||
msmtp_rpm_file: https://git.garbaye.fr/api/packages/Garbaye/generic/msmtp/{{ msmtp_version}}/msmtp-{{ msmtp_version}}.el8.{{ ansible_architecture }}.rpm
|
||||
|
||||
# msmtprc configuration
|
||||
msmtp_auth: 'on'
|
||||
msmtp_tls: 'on'
|
||||
msmtp_tls_starttls: 'on'
|
||||
|
||||
msmtp_accounts:
|
||||
# Account 1 - it was a real account for testing (but yandex now blocks it)
|
||||
# Uses Yandex app password limited to POP3, SMTP and IMAP
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
---
|
||||
- name: Fix msmtpd SELinux type context for msmtpd as a service
|
||||
community.general.sefcontext:
|
||||
target: '/usr/bin/msmtpd'
|
||||
setype: bin_t
|
||||
state: present
|
||||
|
||||
- name: Install msmtp
|
||||
yum:
|
||||
name:
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
# Default settings that all others accounts inherit
|
||||
defaults
|
||||
auth on
|
||||
tls on
|
||||
tls_starttls on
|
||||
auth {{msmtp_auth}}
|
||||
tls {{msmtp_tls}}
|
||||
tls_starttls {{msmtp_tls_starttls}}
|
||||
{% if msmtp_tls_trust_file is defined %}
|
||||
tls_trust_file {{msmtp_tls_trust_file}}
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in New Issue