Created
October 19, 2018 06:35
-
-
Save kanedafromparis/bed4cdcfa7bfbc5898ffb5c78e63f4fe to your computer and use it in GitHub Desktop.
testing sendmail endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENDPOINT=smtp | |
SERVICEPORT=25 | |
timeout 1 bash -c 'cat < /dev/null > /dev/tcp/$ENDPOINT/$SERVICEPORT' ; echo $? | |
/tmp/test.sh > /dev/tcp/$ENDPOINT/$SERVICEPORT | |
$ cat /tmp/test.sh | |
#!/bin/bash | |
echo "EHLO axa.com" | |
echo "MAIL FROM:toto@yopmail.com" | |
echo "RCPT TO:toto@yopmail.com" | |
echo "data" | |
echo "subject:Test" | |
echo "This is a test mail" | |
echo "." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment