Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
netadmin:smtp:tester-smtp [2017/05/03 14:36] – créée yoann | netadmin:smtp:tester-smtp [2024/07/09 14:16] (Version actuelle) – yoann | ||
---|---|---|---|
Ligne 36: | Ligne 36: | ||
</ | </ | ||
+ | ===== Authentification en texte clair ===== | ||
+ | |||
+ | Certains serveur exigent une authentification (clear text). Le processus d' | ||
+ | |||
+ | <code bash> | ||
+ | echo -n username | base64 | ||
+ | echo -n password | base64 | ||
+ | </ | ||
+ | |||
+ | Autre possibilité pour encoder en base 64 via PERL: | ||
+ | |||
+ | <code bash> | ||
+ | perl -MMIME:: | ||
+ | perl -MMIME:: | ||
+ | </ | ||
+ | |||
+ | Via OpenSSL: | ||
+ | |||
+ | <code bash> | ||
+ | openssl enc -base64 -in monfichier.txt -out monfichier.b64 | ||
+ | </ | ||
+ | |||
+ | Peu importe la méthode choisie, noter les chaînes traduisant l' | ||
+ | |||
+ | |||
+ | < | ||
+ | telnet smtp.orange.fr 25 | ||
+ | Trying 193.252.22.86... | ||
+ | Connected to smtp.orange.fr. | ||
+ | Escape character is ' | ||
+ | 220 mwinf5d63 ME ESMTP server ready | ||
+ | helo localhost.localdomain | ||
+ | 250 mwinf5d63 hello [217.133.24.8], | ||
+ | AUTH LOGIN: | ||
+ | 334 VXNlcm5hbWU6 | ||
+ | BASE64userTraduction== | ||
+ | 334 UGFzc3dvcmQ6 | ||
+ | BASE64mdpTraduction== | ||
+ | 235 2.7.0 ... authentication succeeded | ||
+ | mail from: expediteur@example.com | ||
+ | 250 2.1.0 < | ||
+ | rcpt to: destiantaire@example.com | ||
+ | 250 2.1.5 < | ||
+ | data | ||
+ | 354 enter mail, end with " | ||
+ | essai authentification telnet | ||
+ | |||
+ | . | ||
+ | 250 2.0.0 30wz2100D3RlENH030y9ci mail accepted for delivery | ||
+ | </ | ||
+ | |||
+ | ===== Envoi via SSL/TLS ===== | ||
+ | |||
+ | :TODO: | ||
+ | |||
+ | Tester procédure lien en référence | ||
+ | |||
+ | ===== Références ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * [[https:// |