Práctica: Envío de un correo electrónico con el comando telnet
Por Aitor López de Aberasturi el Viernes, 20 de Junio de 2014 0 Comentarios
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 dinux ESMTP Postfix (Ubuntu)
HELO localhost
250 dinux
MAIL FROM: pepe@localhost
250 2.1.0 Ok
RCPT TO:alopezdeaberasturi@gmail.com
250 2.1.5 Ok
DATA
354 End data with < CR>< LF>.< CR>< LF>
SUBJECT: Esto es una prueba
Esta prueba es desde una conexion telnet
.
250 2.0.0 Ok: queued as BAF4D6624AB
QUIT
221 2.0.0 Bye
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 dinux ESMTP Postfix (Ubuntu)
HELO localhost
250 dinux
MAIL FROM: pepe@localhost
250 2.1.0 Ok
RCPT TO:pepe@localhost
250 2.1.5 Ok
DATA
354 End data with < CR>< LF>.< CR>< LF>
SUBJECT: Esto es una prueba
Envio mensaje a usuario local pepe
.
250 2.0.0 Ok: queued as 096D16608A3
QUIT
221 2.0.0 Bye
Connection closed by foreign host.
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 dinux ESMTP Postfix (Ubuntu)
HELO localhost
250 dinux
MAIL FROM: pepe@localhost
250 2.1.0 Ok
RCPT TO:alopezdeaberasturi@gmail.com
250 2.1.5 Ok
DATA
354 End data with < CR>< LF>.< CR>< LF>
SUBJECT: Esto es una prueba
Esta prueba es desde una conexion telnet
.
250 2.0.0 Ok: queued as BAF4D6624AB
QUIT
221 2.0.0 Bye
Nota: Los filtros antispam suelen hacer que nuestro correo no llegue a su destino si no tenemos resolución inversa. Podemos realizar la prueba de envío a un usuario local. Para ello creamos el usuario pepe, enviamos un correo electrónico al mismo:
telnet localhost 25Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 dinux ESMTP Postfix (Ubuntu)
HELO localhost
250 dinux
MAIL FROM: pepe@localhost
250 2.1.0 Ok
RCPT TO:pepe@localhost
250 2.1.5 Ok
DATA
354 End data with < CR>< LF>.< CR>< LF>
SUBJECT: Esto es una prueba
Envio mensaje a usuario local pepe
.
250 2.0.0 Ok: queued as 096D16608A3
QUIT
221 2.0.0 Bye
Connection closed by foreign host.