Voici la structure type d'un message transmis à un MTA :
L'envellope qui contient le minimum d'informations nécessaires au moment de la connection :
HELO RCPT TO destinataire@domaine.fr MAIL FROM urba@domaine-fantaisie.fr DATA
Suit ensuite le corps du message avec ses entêtes :
From: To: Date: Subject: Corps du message.Voici la séquence utilisé pour envoyer un message avec telnet :
[urba@mail urba]# telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 mail.domaine.fr ESMTP Postfix (Postfix-19991231-pl18) helo toto@com 250 mail.domaine.fr mail from: toto@essai.com 250 Ok rcpt to: urba 250 Ok data 354 End data with <CR><LF>.<CR><LF> From: Bidon@ici.fr To: toi@labas.fr Subject: Essai par telnet Ceci est un essai de message envoyé en utlisant telnet sur le port 25. . 250 Ok: queued as E87C53EA2 quit 221 Bye Connection closed by foreign host.Ce qui donne le message suivant :
From - Sun Feb 18 12:58:43 2001 Return-Path: <toto@essai.com> Delivered-To: urba@domaine-fantaisie.fr Received: from toto@com (localhost.localdomain [127.0.0.1]) by mail.domaine.fr (Postfix) with SMTP id E87C53EA2 for <electrix>; Sun, 18 Feb 2001 12:29:04 +0100 (CET) From: Bidon@ici.com To: toi@labas.domaine-fantaisie.fr Subject: Essai par telnet Message-Id: <20010218112904.E87C53EA2@mail.domaine-fantaisie.fr> Date: Sun, 18 Feb 2001 12:29:04 +0100 (CET) Sender: toto@essai.com Ceci est un essai de message envoyé en utlisant telnet sur le port 25.
Précédent | Sommaire | Suivant |
Réception d'un mail | Niveau supérieur | Postfix |