add msmtp/zed/smartd/scrub-timers
This commit is contained in:
10
ansible/roles/msmtp/tasks/main.yml
Normal file
10
ansible/roles/msmtp/tasks/main.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
#TODO install packages
|
||||
# msmtp
|
||||
# msmtp-mta
|
||||
# s-nail
|
||||
|
||||
#TODO add folder /var/log/msmtp
|
||||
|
||||
#TODO add template file msmtprc.j2 to /etc/msmtprc
|
||||
#TODO add template file aliases.j2 to /etc/aliases
|
1
ansible/roles/msmtp/templates/aliases.j2
Normal file
1
ansible/roles/msmtp/templates/aliases.j2
Normal file
@ -0,0 +1 @@
|
||||
root: {{ smtp_admin }}
|
19
ansible/roles/msmtp/templates/msmtprc.j2
Normal file
19
ansible/roles/msmtp/templates/msmtprc.j2
Normal file
@ -0,0 +1,19 @@
|
||||
# Set default values for all following accounts.
|
||||
defaults
|
||||
aliases /etc/aliases
|
||||
auth on
|
||||
tls on
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
logfile /var/log/msmtp/msmtp.log
|
||||
|
||||
# Home
|
||||
account main
|
||||
host {{ smtp_host }}
|
||||
port {{ smtp_port }}
|
||||
from {{ smtp_user }}
|
||||
user {{ smtp_user }}
|
||||
password {{ smtp_password }}
|
||||
tls_starttls {{ smtp_start_tls }}
|
||||
|
||||
# Set a default account
|
||||
account default : main
|
Reference in New Issue
Block a user