Optimized mail integration and solved bugs (hopefully I didn't create more)

This commit is contained in:
2025-01-16 16:36:15 +01:00
parent d1bec25781
commit b0d5396ea8
13 changed files with 60 additions and 25 deletions

View File

@@ -2,6 +2,7 @@
defaults
auth on
logfile ~/.msmtp.log
tls_starttls {{ 'on' if system_email_start_tls else 'off' }}
{% if system_email_tls %}
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
@@ -12,8 +13,8 @@ tls off
account system_email
host {{system_email_host}}
port {{system_email_smtp_port}}
from {{system_email_address}}
user {{system_email_address}}
from {{system_email_from}}
user {{system_email_username}}
password {{system_email_password}}
account default : system_email

View File

@@ -2,7 +2,7 @@
/usr/bin/sendmail -t <<ERRMAIL
To: {{administrator_email}}
From: systemd <{{system_email_address}}>
From: systemd <{{system_email_from}}>
Subject: $1
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8