Kompai Kompiuterių tinklai Linux tarnybos Paskaitos

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 jei norime Extended : EHLO
Turetu atsakyti:
250 mail.domain.ext Hello [], pleased to meet you
Dabar turime parasyti savo email:
MAIL FROM: mail@domain.ext
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:
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:
Gauname atsakyma:
221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.

By Ruslanas Gžibovskis

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.