informatique:linux:commandes_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
informatique:linux:commandes_linux [2019/04/05 09:16] – [ping] fping pteu | informatique:linux:commandes_linux [2019/04/09 13:08] – [telnet] Envoi d'un mail pteu | ||
---|---|---|---|
Line 2337: | Line 2337: | ||
Le port (ici 80) est facultatif (par défaut 23). | Le port (ici 80) est facultatif (par défaut 23). | ||
+ | ====Envoi d'un mail==== | ||
+ | Pour envoyer un mail en SMTP via l' | ||
+ | <code bash> | ||
+ | # lancer l' | ||
+ | $ telnet | ||
+ | |||
+ | telnet> open 10.1.1.55 25 | ||
+ | Trying 10.1.1.55... | ||
+ | Connected to 10.1.1.55. | ||
+ | Escape character is ' | ||
+ | 220 exemple.fr ESMTP Server Ready. Tue, 9 Apr 2019 14:39:14 +0200 | ||
+ | |||
+ | EHLO toto | ||
+ | 250-exemple.fr Hello client.exemple.fr [10.1.2.201], | ||
+ | 250-ENHANCEDSTATUSCODES | ||
+ | 250-PIPELINING | ||
+ | 250-EXPN | ||
+ | 250-VERB | ||
+ | 250-8BITMIME | ||
+ | 250-SIZE 25000000 | ||
+ | 250-DSN | ||
+ | 250-ETRN | ||
+ | 250-DELIVERBY | ||
+ | 250 HELP | ||
+ | |||
+ | MAIL from: | ||
+ | 250 2.1.0 toto@exemple.fr... Sender ok | ||
+ | |||
+ | RCPT to: | ||
+ | 250 2.1.5 dest@domaine.fr... Recipient ok | ||
+ | |||
+ | DATA | ||
+ | 354 Enter mail, end with " | ||
+ | |||
+ | Subject: Test de mail | ||
+ | Ceci est un test de msg | ||
+ | . | ||
+ | 250 2.0.0 x39CdEPw012136 Message accepted for delivery | ||
+ | |||
+ | QUIT | ||
+ | 221 2.0.0 exemple.fr closing connection | ||
+ | Connection closed by foreign host. | ||
+ | </ | ||
=====time===== | =====time===== | ||
informatique/linux/commandes_linux.txt · Last modified: 2024/04/05 06:58 by pteu