From 7f597c5f98c76f86277b0dd030a53d18fa7c6684 Mon Sep 17 00:00:00 2001 From: WebMaster Date: Wed, 8 Feb 2017 00:00:54 -0500 Subject: [PATCH] fixing the serverside e-mail checking --- checkMail.php | 4 +++- checkMail.sh | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) mode change 100644 => 100755 checkMail.sh diff --git a/checkMail.php b/checkMail.php index 8acc869..ed6b033 100644 --- a/checkMail.php +++ b/checkMail.php @@ -1,3 +1,5 @@ diff --git a/checkMail.sh b/checkMail.sh old mode 100644 new mode 100755 index 0b7a8aa..75a0f68 --- a/checkMail.sh +++ b/checkMail.sh @@ -4,7 +4,7 @@ testhost=webthink.net testuser=webmaster@${testhost} -logfile=~/mailqueryfail.log +#logfile=~/mailqueryfail.log mail=$1 hostPart=${mail/*@/} @@ -39,10 +39,10 @@ EOE ) | expect -f - | grep -e '^5') if [ -z "${result}" ] -then echo "OK : " $mail >> $logfile - echo -e "{status:'ok'}" +then echo "OK : " $mail >> /dev/null # $logfile + echo -e "{'status':'ok'}" exit 0 -else echo $mail ":" $result >> $logfile - echo -e "{status:'err', error:'Unknown User'}" +else echo $mail ":" $result >> /dev/null # $logfile + echo -e "{'status':'err', error:'Unknown User'}" exit 1 fi