From 8ff8460d7b7fca3d3b301cea845cb53764614de7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 29 Aug 2002 11:06:50 +0000 Subject: localnsrequest: Use account as mailuser for TotalRegistrations. --- localnsrequest | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'localnsrequest') diff --git a/localnsrequest b/localnsrequest index 57723e8..6a0309d 100755 --- a/localnsrequest +++ b/localnsrequest @@ -3,7 +3,7 @@ # /usr/local/bin/localnsrequest # Copyright 2001, 2002 Jonas Smedegaard # -# $Id: localnsrequest,v 1.3 2002-08-09 01:34:40 jonas Exp $ +# $Id: localnsrequest,v 1.4 2002-08-29 11:06:50 jonas Exp $ # # Send requests regarding domain registrations to registrars # @@ -14,6 +14,7 @@ # * Clean up the mess of handles being both e.g. spiff and radar # +set -e prg=$(basename $0) copyright="(C) 2002 Jonas Smedegaard " @@ -78,7 +79,7 @@ for DOMAIN in $@; do ;; *.com|*.org|*.net) dir='/etc/local-COMMON/TotalRegistrations' - TO="register@totalregistrations.com" +# TO="register@totalregistrations.com" file=email-$handle case $action in reg) @@ -111,6 +112,8 @@ for DOMAIN in $@; do echo "$usage" exit 1 fi + account=`cat $dir/$file | grep '^11a\.' | sed -e 's/.*:\W\([[:alnum:]]\+\)/\1/'` + TO=$account@totalregistrations.com sed -e "s/{DOMAIN}/$DOMAIN/g" -e "s/{ACTION}/$ACTION/g" -e "s/{PASSWD}/$PASSWD/g" $dir/$file \ | mail -s "$action $DOMAIN ($handle)" -a "Content-Type: TEXT/PLAIN; charset=ISO-8859-1" -e $TO -- cgit v1.2.3