2021-01-05 18:17:04 +01:00
|
|
|
# Set default values for all following accounts.
|
|
|
|
defaults
|
|
|
|
auth on
|
2023-12-19 16:03:19 +01:00
|
|
|
logfile ~/.msmtp.log
|
2025-01-16 16:36:15 +01:00
|
|
|
tls_starttls {{ 'on' if system_email_start_tls else 'off' }}
|
2023-12-19 16:03:19 +01:00
|
|
|
{% if system_email_tls %}
|
2021-01-05 18:17:04 +01:00
|
|
|
tls on
|
|
|
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
2023-12-19 16:03:19 +01:00
|
|
|
{% else %}
|
|
|
|
tls off
|
|
|
|
{% endif %}
|
2021-01-05 18:17:04 +01:00
|
|
|
|
|
|
|
account system_email
|
|
|
|
host {{system_email_host}}
|
2023-12-19 16:03:19 +01:00
|
|
|
port {{system_email_smtp_port}}
|
2025-01-16 16:36:15 +01:00
|
|
|
from {{system_email_from}}
|
|
|
|
user {{system_email_username}}
|
2021-01-05 18:17:04 +01:00
|
|
|
password {{system_email_password}}
|
|
|
|
|
|
|
|
account default : system_email
|