Commande TELNET (SMTP)
From Tuxunix
- Connaître le serveur mail gèrent d'un domaine :
nslookup -q=mx domaine.com
- Commandes :
#> telnet mail.domain.com 25 Trying x.x.x.x... Connected to srvmail.test.com Escape character is '^]' 220 domain.com ESMTP Postfix; Wed 09 fev 2010 06:31:05 #> helo d 250 domain.com Hello test@domain.com [x.x.x.x], pleased to meet you #> mail from: test@domain.com 250 test@domain.com... sender OK #> rcpt to: toto@test.fr 250 toto@test.fr... recipient OK #> data 354 Enter mail, end with "." on a line by itself #> Ceci est un test d'envoie de mail par TELNET! #> . 250 RAF349874 Message accepted for delivery #> quit 221 domain.com closing connection