ansible-msmtp-mailer/defaults/main.yml

61 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2014-03-21 19:16:55 +00:00
---
msmtp_version: 1.8.25-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
2023-08-20 07:21:28 +00:00
# msmtprc configuration
2023-08-20 08:23:39 +00:00
msmtp_auth: 'on'
msmtp_tls: 'on'
msmtp_tls_starttls: 'on'
2023-08-20 07:21:28 +00:00
2014-03-21 19:16:55 +00:00
msmtp_accounts:
# Account 1 - it was a real account for testing (but yandex now blocks it)
# 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
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 )
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
## Enable, after the the default smtp account is working
msmtp_send_test_mail: no
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