2014-03-21 19:16:55 +00:00
|
|
|
---
|
2022-11-20 21:44:43 +00:00
|
|
|
msmtp_version: 1.8.22-1
|
2022-08-08 20:23:54 +00:00
|
|
|
msmtp_rpm_file: https://git.garbaye.fr/api/packages/Garbaye/generic/msmtp/{{ msmtp_version}}/msmtp-{{ msmtp_version}}.el8.{{ ansible_architecture }}.rpm
|
2021-09-23 20:24:28 +00:00
|
|
|
|
2014-03-21 19:16:55 +00:00
|
|
|
msmtp_accounts:
|
2020-04-08 18:38:28 +00:00
|
|
|
# Account 1 - it was a real account for testing (but yandex now blocks it)
|
2019-08-05 06:00:49 +00:00
|
|
|
# Uses Yandex app password limited to POP3, SMTP and IMAP
|
2021-07-01 18:52:55 +00:00
|
|
|
- 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
|
|
|
|
host: smtp.gmail.com
|
|
|
|
port: 587
|
|
|
|
auth: "on"
|
|
|
|
from: example@gmail.example
|
|
|
|
user: example@gmail.example
|
|
|
|
password: "some password"
|
2014-03-21 19:16:55 +00:00
|
|
|
|
2019-08-06 09:36:45 +00:00
|
|
|
msmtp_default_account: yandex
|
2021-07-01 18:52:55 +00:00
|
|
|
msmtp_domain: yandex.com
|
2014-03-21 19:16:55 +00:00
|
|
|
|
2021-05-15 15:20:39 +00:00
|
|
|
## Enable or disable automatic envelope-from addresses
|
|
|
|
msmtp_auto_from: 'off'
|
|
|
|
|
2014-03-21 19:16:55 +00:00
|
|
|
## Logging (Select A) "syslog" or B) "file" logging or C) "no" log
|
2021-07-01 18:52:55 +00:00
|
|
|
msmtp_log: file
|
|
|
|
msmtp_logfile: ~/.msmtp.log
|
2014-03-21 19:16:55 +00:00
|
|
|
|
2021-07-12 19:39:30 +00:00
|
|
|
## Aliases mail account
|
|
|
|
## ( only msmtp_alias_default is required the rest is optional )
|
2019-08-06 09:36:45 +00:00
|
|
|
msmtp_alias_default: emailer.tests@yandex.com
|
2021-07-01 18:52:55 +00:00
|
|
|
msmtp_alias_root: emailer.tests@yandex.com
|
|
|
|
msmtp_alias_cron: emailer.tests@yandex.com
|
2018-05-07 08:30:03 +00:00
|
|
|
|
2019-08-06 09:36:45 +00:00
|
|
|
## Enable, after the the default smtp account is working
|
2019-08-05 06:51:31 +00:00
|
|
|
msmtp_send_test_mail: no
|
2019-08-06 09:36:45 +00:00
|
|
|
msmtp_test_mail_recipient: tester@example.org
|
2018-05-07 14:26:30 +00:00
|
|
|
|
|
|
|
## This will remove most other mail transfer agents such as postfix, exim,...!
|
|
|
|
msmtp_remove_mtas: no
|
2021-05-15 15:20:39 +00:00
|
|
|
|
|
|
|
msmtp_listen_interface: 127.0.0.1
|