在測試 telnet SMTP 時,發現 swaks 這工具,還不錯用

About

Swaks is a featureful, flexible, scriptable, transaction-oriented SMTP test tool written and maintained by John Jetmore. Features include:

SMTP extensions including TLS, authentication, pipelining, and XCLIENT
Protocols including SMTP, ESMTP, and LMTP
Transports including unix-domain sockets, internet-domain sockets (IPv4 and IPv6), and pipes to spawned processes
Completely scriptable configuration, with option specification via environment variables, configuration files, and command line

下載 : package or a standalone script

MIRROR on ssorc: swaks


 perl  swaks --to [email protected] --body 'cross'
=== Trying xxxxxxxxxxxxxxx:25...
=== Connected to xxxxxxxxxxxxxxx.
-  220 WIS Corporation
 - EHLO 1111111111111111
-  250-xxxxxxxxxxxxxxx Hello [1.1.1.1]
-  250-SIZE
-  250-PIPELINING
-  250-DSN
-  250-ENHANCEDSTATUSCODES
-  250-STARTTLS
-  250-X-ANONYMOUSTLS
-  250-AUTH NTLM
-  250-X-EXPS GSSAPI NTLM
-  250-8BITMIME
-  250-BINARYMIME
-  250-CHUNKING
-  250-XEXCH50
-  250-XRDST
-  250 XSHADOW
 - MAIL FROM:<root@xxxxxxxxxxxxxxx>
-  250 2.1.0 Sender OK
 - RCPT TO:<[email protected]>
-  250 2.1.5 Recipient OK
 - DATA
-  354 Start mail input; end with .
 - Date: Mon, 20 Oct 2014 11:04:54 +0800
 - To: [email protected]
 - From: root@xxxxxxxxxxxxxxx
 - Subject: test Mon, 20 Oct 2014 11:04:54 +0800
 - X-Mailer: swaks v20130209.0 jetmore.org/john/code/swaks/
 -
 - 123
 -
 -
 - .
-  250 2.6.0 <25851379-797d-4c1a-9e9d-d926382f5839@1111111111111111> [InternalId=6132657] Queued mail for delivery
 - QUIT
-  221 2.0.0 Service closing transmission channel
=== Connection closed with remote host.

 

Related posts 相關文章
使用 vscode 結合 playwright
More...
Windows Powershell Test-NetConnection 指令測試與遠端主機的連線
More...
MySQL 資料庫名稱千萬不要用 test 及 test_XXX
More...
nc 指令檢查 UDP port 是否活著
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。