host=imap.alexpires.me timeout 5 openssl s_client -starttls smtp -connect ${host}:21115 -brief timeout 5 openssl s_client -starttls smtp -connect ${host}:465 -brief &1 | grep -E "220|250" >/dev/null echo $?