2014-03-21 19:16:55 +00:00
|
|
|
---
|
|
|
|
msmtp_accounts:
|
|
|
|
#Account 1
|
2018-04-28 18:21:08 +00:00
|
|
|
- account : gmail
|
|
|
|
host : smtp.gmail.com
|
2014-03-21 19:16:55 +00:00
|
|
|
port : 587
|
|
|
|
auth : "on"
|
2018-04-28 18:21:08 +00:00
|
|
|
from : username@gmail.com
|
|
|
|
user : username@gmail.com
|
|
|
|
password : plain-text-password1
|
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-04-28 18:21:08 +00:00
|
|
|
msmtp_default_account: mysmtp
|
|
|
|
msmtp_domain : example.org
|
2014-03-21 19:16:55 +00:00
|
|
|
|
|
|
|
## Logging (Select A) "syslog" or B) "file" logging or C) "no" log
|
2018-04-28 18:21:08 +00:00
|
|
|
#msmtp_log : "syslog"
|
|
|
|
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-04-28 18:21:08 +00:00
|
|
|
msmtp_alias_default : devops@example.org
|
|
|
|
msmtp_alias_root : root@example.org
|
|
|
|
msmtp_alias_cron : cron@example.org
|
2018-05-07 08:30:03 +00:00
|
|
|
|
|
|
|
msmtp_send_test_mail: No
|