From 74d1c30c4382cb78c565e615e651f6921a959ddf Mon Sep 17 00:00:00 2001 From: WebMaster Date: Thu, 9 Nov 2017 21:19:30 -0500 Subject: [PATCH 1/2] stop checking the e-mail users... causes blacklisting... --- checkMail.sh | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/checkMail.sh b/checkMail.sh index bac50fc..4e85e31 100755 --- a/checkMail.sh +++ b/checkMail.sh @@ -22,24 +22,26 @@ else host=localhost fi -result=$((cat << EOE -set timeout 60 -spawn nc $host 25 -expect "220" { -send "EHLO ${testhost}\r" -expect "250 " { -send "MAIL FROM:<${testuser}>\r" -expect "250" { -send "RCPT TO:<${mail}>\r" -expect "250" { -send "QUIT\r" -} -re \[\n\r\]5.*$ { -exit 1 1 -close -} -}}} -EOE -) | expect -f - | grep -e '^5') +#result=$((cat << EOE +#set timeout 60 +#spawn nc $host 25 +#expect "220" { +#send "EHLO ${testhost}\r" +#expect "250 " { +#send "MAIL FROM:<${testuser}>\r" +#expect "250" { +#send "RCPT TO:<${mail}>\r" +#expect "250" { +#send "QUIT\r" +#} -re \[\n\r\]5.*$ { +#exit 1 1 +#close +#} +#}}} +#EOE +#) | expect -f - | grep -e '^5') + +result="" #don't verify the accounts anymore, that results in blacklisting :( if [ -z "${result}" ] then echo "`date` - OK : " $mail >> $logfile From 0e0ef338f6a3ad5c588b7aa2f89ae87cadd5598c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Jan 2022 12:53:25 -0600 Subject: [PATCH 2/2] change source address of e-mail --- postForward.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postForward.php b/postForward.php index 2a3af33..18f2e97 100644 --- a/postForward.php +++ b/postForward.php @@ -7,7 +7,7 @@ $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers -$headers .= 'From: ' . "\r\n"; +$headers .= 'From: ' . "\r\n"; $result=mail ("webmaster@i-buy.properties","new From", $data, $headers); if($result){