update smaple accounts. yandex not working oob.

This commit is contained in:
chriswayg 2019-08-06 17:36:45 +08:00
parent 07a6759eed
commit eb749279d8

View file

@ -1,7 +1,23 @@
--- ---
msmtp_accounts: msmtp_accounts:
# Account 1 - a real account for testing (feel free to use it for this role) # Account 1 - its a real account for testing (but yandex now blocks it)
# Uses Yandex app password limited to POP3, SMTP and IMAP # Uses Yandex app password limited to POP3, SMTP and IMAP
- account: yandex
host: smtp.yandex.com
port: 587
auth: "on"
from: emailer-tests@yandex.com
user: emailer-tests@yandex.com
password: jhlrizltgkmnkkgm
#Account 2
- account: mysmtp
host: smtp.example
port: 587
auth: "on"
from: admin@example.org
user: myuser@example.org
password: plain-text-password2
#Account 3
- account: gmail - account: gmail
host: smtp.gmail.com host: smtp.gmail.com
port: 587 port: 587
@ -10,20 +26,21 @@ msmtp_accounts:
user: example@gmail.example user: example@gmail.example
password: "some password" password: "some password"
msmtp_default_account: gmail msmtp_default_account: yandex
msmtp_domain: gmail.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: ~/.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: example@gmail.example msmtp_alias_default: emailer.tests@yandex.com
msmtp_alias_root: example@gmail.example msmtp_alias_root: emailer.tests@yandex.com
msmtp_alias_cron: example@gmail.example msmtp_alias_cron: emailer.tests@yandex.com
## Enable, if the the default smtp account is working ## Enable, after the the default smtp account is working
msmtp_send_test_mail: no msmtp_send_test_mail: no
msmtp_test_mail_recipient: tester@example.org
## This will remove most other mail transfer agents such as postfix, exim,...! ## This will remove most other mail transfer agents such as postfix, exim,...!
msmtp_remove_mtas: no msmtp_remove_mtas: no