]> git.plutz.net Git - shellwiki/commitdiff
Squashed 'cgilite/' changes from 0591b08..426dac5
authorPaul Hänsch <paul@plutz.net>
Tue, 27 Feb 2024 21:50:35 +0000 (22:50 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 27 Feb 2024 21:50:35 +0000 (22:50 +0100)
426dac5 fix auto detection of sender address

git-subtree-dir: cgilite
git-subtree-split: 426dac52b5648fea4854fb141452d113b5c2251a

users.sh

index be68a8acbe04ca0864917f92b0aef9541536429a..c924789c2e25a6fcb71b7b60eb9980373e9038ec 100755 (executable)
--- 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