вторник, 17 декабря 2013 г.

Telnet - SMTP Commands (sending mail using telnet)

Крайне полезно бывает, для понимания что же творится с почтой:

http://www.yuki-onna.co.uk/email/smtp.html

telnet mail.domain.ext 25
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date+time+gmtoffset?

HELO local.domain.name 

250 mail.domain.ext Hello local.domain.name [loc.al.i.p], pleased to meet you
MAIL FROM: mail@domain.ext
250 2.1.0 mail@domain.ext... Sender ok
RCPT TO: mail@otherdomain.ext
250 2.1.0 mail@otherdomain.ext... Recipient ok


DATA
354 Enter mail, end with <CRLF>.<CRLF>
This is a test SMTP e-mail from console.
.
250-Transmission in progress. Stay tuned
250-Transmission in progress. Stay tuned
250 Message accepted for delivery
QUIT
221 See ya in cyberspace