From 426dac52b5648fea4854fb141452d113b5c2251a Mon Sep 17 00:00:00 2001
From: =?utf8?q?Paul=20H=C3=A4nsch?= <paul@plutz.net>
Date: Tue, 27 Feb 2024 22:50:00 +0100
Subject: [PATCH] fix auto detection of sender address

---
 users.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/users.sh b/users.sh
index be68a8a..c924789 100755
--- a/users.sh
+++ b/users.sh
@@ -29,9 +29,8 @@ USER_ACCOUNTPAGE="${USER_ACCOUNTPAGE}"
 USER_ACCOUNTEXPIRE="${USER_ACCOUNTEXPIRE:-$((86400 * 730))}"
 USER_CONFIRMEXPIRE="${USER_CONFIRMEXPIRE:-86400}"
 
-MAILFROM="${MAILDOMAIN-noreply@${HTTP_HOST%:*}}"
-
 HTTP_HOST="$(HEADER Host)"
+MAILFROM="noreply@${HTTP_HOST%:*}"
 
 [ "$HTTPS" ] && SCHEMA=https || SCHEMA=http
 
-- 
2.39.5