Q. Comment can I send mail to a SMTP server using Telnet?
R. Comme dans le case du POP3, on peut aussi envoyer des messages SMTP en utilisant telnet et en se connectant sur le port 25 du serveur., par exemple :
C:\> telnet smtp.savilltech.com 25
Une fois connecté , vous pouvez aussi vous authentifier ( c'est obligatoire sur certain serveur SMTP )
helo <nom du domaine>
Par ex : helo savilltech.com
vrfy <nom d'utilisateur>
Par ex. vrfy john
Apres avoir été authentifié , vous pouvez commencer a ecrire des messages. La premiere commande a utilisé est mail, et vous devez précisez l'adresse de l'auteur du message.
mail from:<billg@microsoft.com>
L'adresse doit etre entre <>. Puis vous devez précisez le destinataire du message., par ex:
rcpt to:<john@savilltech.com>
Les champs auteur et destinataire du message ayant été remplis vous pouvez envoyé le corps du message en utilisant la commande data.The from and to have been completed you can start the body of the message using the data command. You have to create the header information in the first lines of the message. Once you have completed the message enter a '.' on a blank link and the message will be sent. Below is an example creating a message.

As you can see I entered a from, date, to and a subject and then entered the body of the text. Make sure you don't make a mistake as if you backspace this is enterpreted as a bad character and will be rejected. If a message is rejected a rejection will be send to the address specified in the "mail from:<...>" and for this reason you should only ever put your e-mail address. Although I have used a different address as a joke you should NEVER do this.
Below is Comment the message looks when received in Outlook 98:

The above sComments Comment easy it is to send a message and make it look from a different address but if you examined the header you would easily see it was sent from a different mail server and rumble its a fake (and a very bad one)!
I shall be adding future entries describing Comment to STOP people sending mail from your server (as they probably can at the moment).
For full information on SMTP and the commands you can use see Request For Comments 821.
Un commentaire , une précision ? Ecrivez
nous.