Outils pour utilisateurs

Outils du site


test_smtp

Test smtp

#!/bin/bash
server=$1
port=$2
from=$3
to=$4
login=$5
password$6

function mail_input {
echo "ehlo $(hostname -f)"
echo "AUTH LOGIN "
echo "$(echo $5 | base64)"
echo "$(echo $6 | base64)"
echo "MAIL FROM: <$from>"
echo "RCPT TO: <$to>"
echo "DATA"
echo "From: <$from>"
echo "To: <$to>"
echo "Subject: Testing SMTP Mail"
echo "This is only a test. Please do not panic. If this works, then all is well, else all is not well."
echo "."
echo "quit"
}
mail_input
mail_input | nc $server $port 
test_smtp.txt · Dernière modification : 2021/08/05 21:35 de tomamplius

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki