User Tools

Site Tools


informatique:linux:swaks

Swaks - Swiss Army Knife for SMTP

Utilisation (simple téléchargement du script) :

[root@mon-serveur ~]# perl swaks.pl --to moi@mon-nom-de-domaine.fqdn --from mon-serveur@mon-nom-de-domaine.fqdn --server smtp-serveur.fqdn --port 25
=== Trying smtp-serveur.fqdn:25...
=== Connected to smtp-serveur.fqdn.
<- 220 mail-serveur.fqdn ESMTP Postfix
 -> EHLO mon-serveur
<- 250-mail-serveur.fqdn
<- 250-PIPELINING
<- 250-SIZE 41943040
<- 250-VRFY
<- 250-ETRN
<- 250-ENHANCEDSTATUSCODES
<- 250-8BITMIME
<- 250 DSN
 -> MAIL FROM:<mon-serveur@mon-nom-de-domaine.fqdn>
<- 250 2.1.0 Ok
 -> RCPT TO:<moi@mon-nom-de-domaine.fqdn>
<- 250 2.1.5 Ok
 -> DATA
<- 354 End data with <CR><LF>.<CR><LF>
 -> Date: Wed, 04 Nov 2020 16:59:58 +0100
 -> To: moi@mon-nom-de-domaine.fqdn
 -> From: mon-serveur@mon-nom-de-domaine.fqdn
 -> Subject: test Wed, 04 Nov 2020 16:59:58 +0100
 -> Message-Id: <20201104165958.016956@mon-serveur>
 -> X-Mailer: swaks v20201014.0 jetmore.org/john/code/swaks/
 ->
 -> This is a test mailing
 ->
 ->
 -> .
<- 250 2.0.0 Ok: queued as 7B42B60093
 -> QUIT
<- 221 2.0.0 Bye
=== Connection closed with remote host.
[root@mon-serveur ~]#

Liens

informatique/linux/swaks.txt · Last modified: 2020/11/09 10:34 by didzkovitchz