]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-make-ml: use full email address for default owner
authorBaptiste Daroussin <bapt@FreeBSD.org>
Sun, 29 Mar 2026 02:52:18 +0000 (04:52 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Sun, 29 Mar 2026 07:55:39 +0000 (09:55 +0200)
The default owner "postmaster" lacks a domain part, causing
mlmmj-send to reject it with "No @ in address". Use the FQDN
already collected earlier in the script to build a proper
postmaster@FQDN default.

Closes #36

src/mlmmj-make-ml.in

index e960ff0c83fdfdefa1354623491aba744ab38322..8421f99ec0bf7da649a37c76bfa7df45c240d772 100755 (executable)
@@ -102,7 +102,7 @@ if [ -z "$FQDN" ]; then
 fi
 
 if [ -z "$OWNER" ]; then
-       OWNERDEF="postmaster"
+       OWNERDEF="postmaster@$FQDN"
        printf 'The emailaddress of the list owner? [%s] : ' "$OWNERDEF"
        read -r OWNER
        if [ -z "$OWNER" ]; then