Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

Remove bash scripts

Amaury Martiny535b538b7f38
diff --git a/bash/checkEmail.sh b/bash/checkEmail.sh
deleted file mode 100755
index d1f3c287..00000000
--- a/bash/checkEmail.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#! /bin/bash
-
-# Set useful variables
-EMAIL="$1";
-DOMAIN=`cut -d "@" -f 2 <<< "$1"`;
-MX_HOSTS=(`nslookup -q=mx $DOMAIN | grep mail | cut -d " " -f 5`) # Find MX hosts of our domain
-PORTS=(25 587 465); # The PORTS to test our telnet on, in this order
-
-if [[ $# == 2 ]]; then
- SENDER="$2"
-fi
-if [ -z $SENDER ]; then
-fi
-
-for HOST in ${MX_HOSTS[@]}; do
- for PORT in ${PORTS[@]}; do
- OUTPUT=`expect expectTelnet.tcl $EMAIL $HOST $PORT $SENDER 2>/dev/null`;
- if [[ `echo $OUTPUT | grep "2.1.5"` ]]; then # 2.1.5 means address exists
- echo true;
- exit 0;
- fi
- done
-done
-
-echo false;
-exit 1;
diff --git a/bash/expectTelnet.tcl b/bash/expectTelnet.tcl
deleted file mode 100644
index 5afa2232..00000000
--- a/bash/expectTelnet.tcl
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /usr/bin/env expect
-
-# Retrive arguments
-set email [lindex $argv 0]
-set host [lindex $argv 1]
-set port [lindex $argv 2]
-set sender [lindex $argv 3]
-
-# Start a Telnet communication
-spawn telnet $host $port;
-expect "220"
-send "HELO Hi\r";
-expect "250"
-send "MAIL FROM: <$sender>\r";
-expect "250"
-send "RCPT TO: <$email>\r";
-expect "*"
-send "QUIT\r"
-expect eof