33.1.3. SMTP

section id="smtp" condition="author"

Odkazy:

$ telnet <IP> 25
EHLO
MAIL FROM: <from-email>
RCPT TO: <recipient-email>
DATA
Type message here.
. <Enter>
$ telnet mail.firma.cz 25
Trying 10.16.66.18...
Connected to sunrise.
Escape character is '^]'.
220 sunrise.firma.cz ESMTP Postfix
HELO sunrise.firma.cz
250 sunrise.firma.cz
MAIL FROM:<root@firma.cz>
250 Ok
RCPT TO:<nospam@hnilica.cz>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Halo
testuji test
-- Radek
.
250 Ok: queued as 092F8EC8D
quit
221 Bye
Connection closed by foreign host.
$

Tabulka 33.1. Kódy odpovědí SMTP

2xxPříkaz byl úspěšně vykonán.
3xxPříkaz byl přijat, server očekává další informace.
4xxNastala chyba. Dočasná chyba.
5xxNastala chaba. Příkaz byl neúspěšný. Trvalá chyba.