secured Yandex account. fixed formatting for ansible lint.

This commit is contained in:
chriswayg 2019-08-05 14:00:49 +08:00
parent 4996f19549
commit cdb7b27ab2
1 changed files with 22 additions and 21 deletions

View File

@ -1,35 +1,36 @@
--- ---
msmtp_accounts: msmtp_accounts:
# Account 1 - a real account for testing (feel free to use it for this role) # Account 1 - a real account for testing (feel free to use it for this role)
- account : yandex # Uses Yandex app password limited to POP3, SMTP and IMAP
host : smtp.yandex.com - account: yandex
port : 587 host: smtp.yandex.com
auth : "on" port: 587
from : emailer-tests@yandex.com auth: "on"
user : emailer-tests@yandex.com from: emailer-tests@yandex.com
password : WHUXevzmwYGpwi+XTu3CeY user: emailer-tests@yandex.com
password: jhlrizltgkmnkkgm
#Account 2 #Account 2
- account : mysmtp - account: mysmtp
host : smtp.example host: smtp.example
port : 587 port: 587
auth : "on" auth: "on"
from : admin@example.org from: admin@example.org
user : myuser@example.org user: myuser@example.org
password : plain-text-password2 password: plain-text-password2
msmtp_default_account: yandex msmtp_default_account: yandex
msmtp_domain : yandex.com msmtp_domain: yandex.com
## Logging (Select A) "syslog" or B) "file" logging or C) "no" log ## Logging (Select A) "syslog" or B) "file" logging or C) "no" log
msmtp_log : file msmtp_log: file
msmtp_logfile : /var/log/msmtp.log msmtp_logfile: /var/log/msmtp.log
## Aliases mail account ( only msmtp_alias_default is required the rest is optional ) ## Aliases mail account ( only msmtp_alias_default is required the rest is optional )
msmtp_alias_default : emailer.tests@yandex.com msmtp_alias_default: emailer.tests@yandex.com
msmtp_alias_root : emailer.tests@yandex.com msmtp_alias_root: emailer.tests@yandex.com
msmtp_alias_cron : emailer.tests@yandex.com msmtp_alias_cron: emailer.tests@yandex.com
## Enable, if the the smtp account is working ## Enable, if the the default smtp account is working
msmtp_send_test_mail: yes msmtp_send_test_mail: yes
## This will remove most other mail transfer agents such as postfix, exim,...! ## This will remove most other mail transfer agents such as postfix, exim,...!