telnet i pasta (telnet into smtp server)

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

Valio mes viduje. Pasisveikinkime ir pasakykime kokis musu domenas:
HELO local.domain.name jei norime Extended : EHLO local.domain.name
Turetu atsakyti:
250 mail.domain.ext Hello local.domain.name [loc.al.i.p], pleased to meet you
Dabar turime parasyti savo email:
MAIL FROM: mail@domain.ext
Atsakymas:
250 2.1.0 mail@domain.ext... Sender ok
Rasome kam:
RCPT TO: mail@otherdomain.ext
Gauname atsakyma:
250 2.1.0 mail@otherdomain.ext... Recipient ok
Tuomet kompouzinam laiska:
DATA
Subject:-antraste cia-
bla bla bla
bla bla bla
.

Pabaigiam laiska tasku ir gauname atsakyma:
250 2.0.0 ???????? Message accepted for delivery
Tuomet pabaigiam sesija:
QUIT
Gauname atsakyma:
221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.