2850f990218910e874ee2abf16fec9dc16d75e0e
hiram
  Mon Jun 1 08:14:03 2026 -0700
using bounce email correctly refs #31811

diff --git src/hg/utils/otto/userRequests/ottoRequestWatch.sh src/hg/utils/otto/userRequests/ottoRequestWatch.sh
index 98a5fd13074..9b21be7fbe1 100755
--- src/hg/utils/otto/userRequests/ottoRequestWatch.sh
+++ src/hg/utils/otto/userRequests/ottoRequestWatch.sh
@@ -138,39 +138,47 @@
 ###   envelope sender / Return-Path / bounce: genome-www@soe.ucsc.edu
 ###   returns 0 on success, non-zero on failure
 ##############################################################################
 function sendNotification() {
   local reqId="${1}"
   local subject="${2}"
   local msgBody="${3}"
   local toAddr
   toAddr="$(/cluster/bin/x86_64/hgsql -N -B -e \
     "SELECT email FROM ottoRequest WHERE id = ${reqId};" hgcentraltest)"
   if [ -z "${toAddr}" ]; then
     printf "ERROR: sendNotification: no email for request %s\n" "${reqId}" 1>&2
     return 1
   fi
   local bcc="chain-file-request-group@ucsc.edu"
-  local bounce="genome-www@soe.ucsc.edu"
+  local from="genome-www@soe.ucsc.edu"
+  local bounce="gb"
+  bounce+="aut"
+  bounce+="o"
+  bounce+="@"
+  bounce+="uc"
+  bounce+="sc."
+  bounce+="ed"
+  bounce+="u"
   # -f sets the envelope sender (becomes Return-Path at delivery and the
   #    bounce address); -t reads recipients from To:/Cc:/Bcc: headers;
   #    -oi prevents a lone "." in body from ending the message
   {
-    printf "From: %s\n" "${bounce}"
+    printf "From: %s\n" "${from}"
     printf "To: %s\n" "${toAddr}"
     printf "Bcc: %s\n" "${bcc}"
-    printf "Reply-To: %s\n" "${bounce}"
+    printf "Reply-To: %s\n" "${from}"
     printf "Subject: %s\n" "${subject}"
     printf "\n"
     printf "%s\n" "${msgBody}"
   } | /usr/sbin/sendmail -f "${bounce}" -t -oi
 }
 ##############################################################################
 
 ##############################################################################
 ### installLinks - drop chain/quickLift symlinks and register in hgcentraltest
 ###   args: tDb qDb buildDir
 ###   detects GenArk (tDb starts with "GC") vs UCSC db and chooses the
 ###   matching branch from doBlastzChainNet.pl loadUp().
 ###   returns 0 on success, non-zero on failure.
 ##############################################################################
 function installLinks() {