do nice things with no tools :-)

for i in $(seq 1 1024) 
do 
   (echo >/dev/tcp/mail.domain.com/$i) &>/dev/null && echo "TCP port $i open"
done