====== 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: <- 250 2.1.0 Ok -> RCPT TO: <- 250 2.1.5 Ok -> DATA <- 354 End data with . -> 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 ===== [[http://www.jetmore.org/john/code/swaks/|Swaks - Swiss Army Knife for SMTP]] [[https://blog.hbis.fr/2013/05/24/swaks-smtp_test/|Swaks : le couteau suisse SMTP]] [[https://github.com/jetmore/swaks|Swaks - Swiss Army Knife for SMTP (github)]] [[https://linux.die.net/man/1/swaks|swaks(1) - Linux man page]] {{tag>GNU_Linux Postfix Sendmail SMTP Swaks}}