« Smtp : Commandes telnet SMTP » : différence entre les versions
De www.yakakliker.org
(Page créée avec « <syntaxhighlight lang="bash"> Connexion au serveur SMTP sur le port 25 Le serveur nous renvoie quelques informations Exécution de la commande HELO avec le nom de notre domaine en paramètre Le serveur nous répond qu'il est OK On indique l'émetteur grâce à la commande MAIL FROM Le serveur nous répond qu'il est OK On indique le destinataire grâce à la commande RCPT TO Le serveur nous répond qu'il est OK On indique le début du message grâce à la commande... ») |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ telnet smtp.free.fr 25 | |||
Trying 212.27.48.4... | |||
Connected to smtp.free.fr. | |||
Escape character is '^]'. | |||
220 smtp4-g21.free.fr ESMTP Postfix | |||
HELO test.domain.com | |||
250 smtp4-g21.free.fr | |||
MAIL FROM:<test@domain.com> | |||
250 2.1.0 Ok | |||
RCPT TO:<toto@domain.fr> | |||
250 2.1.5 Ok | |||
DATA | |||
354 End data with <CR><LF>.<CR><LF> | |||
Subject: test message | |||
This is the body of the message! | |||
. | |||
250 2.0.0 Ok: queued as 2D8FD4C80FF | |||
quit | |||
221 2.0.0 Bye | |||
Connection closed by foreign host. | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Version du 9 octobre 2024 à 17:10
$ telnet smtp.free.fr 25
Trying 212.27.48.4...
Connected to smtp.free.fr.
Escape character is '^]'.
220 smtp4-g21.free.fr ESMTP Postfix
HELO test.domain.com
250 smtp4-g21.free.fr
MAIL FROM:<test@domain.com>
250 2.1.0 Ok
RCPT TO:<toto@domain.fr>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: test message
This is the body of the message!
.
250 2.0.0 Ok: queued as 2D8FD4C80FF
quit
221 2.0.0 Bye
Connection closed by foreign host.