2014-03-21 19:16:55 +00:00
|
|
|
---
|
|
|
|
msmtp_accounts:
|
2018-05-07 14:26:30 +00:00
|
|
|
# Account 1 - a real account for testing (feel free to use it for this role)
|
2018-05-07 09:53:56 +00:00
|
|
|
- account : yandex
|
|
|
|
host : smtp.yandex.com
|
2014-03-21 19:16:55 +00:00
|
|
|
port : 587
|
|
|
|
auth : "on"
|
2018-05-07 09:53:56 +00:00
|
|
|
from : emailer-tests@yandex.com
|
|
|
|
user : emailer-tests@yandex.com
|
2018-05-26 14:12:37 +00:00
|
|
|
password : WHUXevzmwYGpwi+XTu3CeY
|
2014-03-21 19:16:55 +00:00
|
|
|
#Account 2
|
2018-04-28 18:21:08 +00:00
|
|
|
- account : mysmtp
|
|
|
|
host : smtp.example
|
2014-03-21 19:16:55 +00:00
|
|
|
port : 587
|
|
|
|
auth : "on"
|
2018-04-28 18:21:08 +00:00
|
|
|
from : admin@example.org
|
|
|
|
user : myuser@example.org
|
|
|
|
password : plain-text-password2
|
2014-03-21 19:16:55 +00:00
|
|
|
|
2018-05-07 09:53:56 +00:00
|
|
|
msmtp_default_account: yandex
|
|
|
|
msmtp_domain : yandex.com
|
2014-03-21 19:16:55 +00:00
|
|
|
|
|
|
|
## Logging (Select A) "syslog" or B) "file" logging or C) "no" log
|
2018-05-07 09:53:56 +00:00
|
|
|
msmtp_log : file
|
2018-04-28 18:21:08 +00:00
|
|
|
msmtp_logfile : /var/log/msmtp.log
|
2014-03-21 19:16:55 +00:00
|
|
|
|
|
|
|
## Aliases mail account ( only msmtp_alias_default is required the rest is optional )
|
2018-05-07 09:53:56 +00:00
|
|
|
msmtp_alias_default : emailer.tests@yandex.com
|
|
|
|
msmtp_alias_root : emailer.tests@yandex.com
|
|
|
|
msmtp_alias_cron : emailer.tests@yandex.com
|
2018-05-07 08:30:03 +00:00
|
|
|
|
2018-05-08 12:18:28 +00:00
|
|
|
## Enable, if the the smtp account is working
|
|
|
|
msmtp_send_test_mail: yes
|
2018-05-07 14:26:30 +00:00
|
|
|
|
|
|
|
## This will remove most other mail transfer agents such as postfix, exim,...!
|
|
|
|
msmtp_remove_mtas: no
|