Outils personnels

Discussion SMTP via telnet : Différence entre versions

De wikiGite

 
Ligne 1 : Ligne 1 :
<nowiki>#</nowiki>telnet localhost 25
+
Parler à un serveur SMTP pour débugguer des problèmes de mails. rien de plus simple...
220 [127.0.0.1] ESMTP Postfix
+
 
HELO localhost
+
#telnet localhost 25
250 [127.0.0.1]
+
220 [127.0.0.1] ESMTP Postfix
MAIL FROM: <>
+
HELO localhost
250 2.1.0 Sender  OK
+
250 [127.0.0.1]
RCPT TO: <mail@toto.org>  
+
MAIL FROM: <>
250 2.1.5  OK
+
250 2.1.0 Sender  OK
DATA
+
RCPT TO: <mail@toto.org>  
354 End data with <CR><LF>.<CR><LF>
+
250 2.1.5  OK
.
+
DATA
250 2.0.0 Ok: queued as 079474CE44
+
354 End data with <CR><LF>.<CR><LF>
QUIT
+
.
221 2.0.0 Bye
+
250 2.0.0 Ok: queued as 079474CE44
Connection closed by foreign host
+
QUIT
 +
221 2.0.0 Bye
 +
Connection closed by foreign host

Version du 18 mars 2009 à 17:30

Parler à un serveur SMTP pour débugguer des problèmes de mails. rien de plus simple...

#telnet localhost 25

220 [127.0.0.1] ESMTP Postfix

HELO localhost

250 [127.0.0.1]

MAIL FROM: <>

250 2.1.0 Sender OK

RCPT TO: <mail@toto.org> 

250 2.1.5 OK

DATA

354 End data with <CR><LF>.<CR><LF>

.

250 2.0.0 Ok: queued as 079474CE44

QUIT

221 2.0.0 Bye Connection closed by foreign host