stop checking the e-mail users... causes blacklisting...
This commit is contained in:
38
checkMail.sh
38
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
|
||||
|
||||
Reference in New Issue
Block a user