Sunday, September 6, 2015

[WSRV] Telnet cmdlets





* Type NSLOOKUP
> set q=mx
> theirdomain.com

telnet mail.theirdomain.com 25

ehlo mydomain.com
EHLO - introduce yourself to the mail server HELO can also be used but EHLO tells the server to use the extended command set (not that we're using that).

mail from:<martin9700@mydomain.com>
MAIL FROM - who's sending the email. Make sure to place this is the greater than/less than brackets as many email servers will require this (Postini).

rcpt to:<recipient@theirdomain.com>
RCPT TO - who you're sending it to. Again you need to use the brackets. See Step #4 on how to test relaying mail!

DATA - tells the SMTP server that what follows is the body of your email. Make sure to hit "Enter" at the end. If you want a subject for your email type Subject:-type subject here- then press enter twice (these are needed to conform to RFC 882)

. - the period alone on the line tells the SMTP server you're all done with the data portion and it's clear to send the email.

QUIT - exits the TELNET session.