From 9f4728006c5ce98c3dee0a959d0d228fa87b5e3f Mon Sep 17 00:00:00 2001 From: David Mehren <david.mehren@tu-dortmund.de> Date: Tue, 25 Feb 2020 19:24:58 +0100 Subject: [PATCH] Make auto_from configurable --- templates/msmtprc.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/msmtprc.j2 b/templates/msmtprc.j2 index e205a49..495bd1d 100644 --- a/templates/msmtprc.j2 +++ b/templates/msmtprc.j2 @@ -8,3 +8,7 @@ from {{ msmtp_from }} {% endif %} host {{ msmtp_relay_relayhost }} aliases /etc/aliases +{% if msmtp_auto_from_domain is defined %} +auto_from on +maildomain {{ msmtp_auto_from_domain }} +{% endif %} -- GitLab