smtp-check

This commit is contained in:
pvincent
2024-04-23 08:37:43 +04:00
parent 97139919fb
commit d25d8ab992
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
username=postmaster@mangue-et-solidaire.re
password=
base64=$(echo -ne "\0$username\0$password" | base64)
openssl s_client -starttls smtp -connect mail1.zourit.net:587 -ign_eof <<EOF | grep "Authentication successful"
ehlo mangue-et-solidaire.re
auth plain $base64
quit
EOF