java 发表于 2017-12-8 11:00:36

smtp常用命令测试

$ swaks --to firemail.wang@qq.com --from firemail.wang@qq.com
=== Trying mx3.qq.com:25...
=== Connected to mx3.qq.com.
<-220 newmx114.qq.com MX QQ Mail Server
-> EHLO hechengjin-deepin
<-250-newmx114.qq.com
<-250-SIZE 73400320
<-250-STARTTLS
<-250 OK
-> MAIL FROM:<firemail.wang@qq.com>
<-250 Ok
-> RCPT TO:<firemail.wang@qq.com>
<-250 Ok
-> DATA
<-354 End data with <CR><LF>.<CR><LF>
-> Date: Fri, 08 Dec 2017 10:28:32 +0800
-> To: firemail.wang@qq.com
-> From: firemail.wang@qq.com
-> Subject: test Fri, 08 Dec 2017 10:28:32 +0800
-> Message-Id: <20171208102832.010808@qq.com>
-> X-Mailer: swaks v20170101.0 jetmore.org/john/code/swaks/
->
-> This is a test mailing
->
-> .
<-250 Ok: queued as
-> QUIT
<-221 Bye
=== Connection closed with remote host.

Qter 发表于 2023-11-30 17:18:00

220 localhost richmail system v10(2ee1656039d8076-00076)
EHLO DESKTOP-JNLPN9A
250-mail
250-STARTTLS
250-X-PART
250-PIPELINING
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
AUTH LOGIN
334 dXNlcm5hbWU6
YTAzQGNoaW5hbW9iaWxlLmNvbQ==
334 UGFzc3dvcmQ6
MjAxMEI0NEMxNTMyNUZBNjBCMDA=
235 Authentication successful
MAIL FROM: <a03@chinamobile.com>
250 ok
RCPT TO: <a03@chinamobile.com>
250 ok
DATA
354 end with .
Date: Wed, 29 Nov 2023 14:29:52 +0800
From: "a03@chinamobile.com" <a03@chinamobile.com>
To: a03 <a03@chinamobile.com>
Subject: 1111
X-Priority: 3
X-GUID: 8677575B-4088-407A-A774-C8F6FF112401
X-Has-Attach: no
X-Mailer: Foxmail 7.2.25.213
Mime-Version: 1.0
Message-ID: <2023112914295185667815@chinamobile.com>
Content-Type: multipart/alternative;
        boundary="----=_001_NextPart676854461312_=----"

This is a multi-part message in MIME format.

------=_001_NextPart676854461312_=----
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: base64

DQoxMWhpbmFtb2JpbGUuY29tMTExMQ0KDQoNCmEwM0BjaGluYW1vYmlsZS5jb20NCg==

------=_001_NextPart676854461312_=----
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charse=
t=3Dus-ascii"><style>body { line-height: 1.5; }body { font-size: 14px; fon=
t-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }</=
style></head><body>=0A<div><span></span><br></div>=0A<div><span style=3D"f=
ont-family: verdana; font-size: 13.3333px;">11hinamobile.com1111</span></d=
iv><hr style=3D"width: 210px; height: 1px;" color=3D"#b5c4df" size=3D"1" a=
lign=3D"left">=0A<div><span><div style=3D"MARGIN: 10px; FONT-FAMILY: verda=
na; FONT-SIZE: 10pt"><div>a03@chinamobile.com</div></div></span></div>=0A<=
/body></html>
------=_001_NextPart676854461312_=------

.
250 ok
QUIT
221 localhost richmail system closing transmission channel


Qter 发表于 2023-12-4 10:25:38

基于服务端返回,走SM9流程

页: [1]
查看完整版本: smtp常用命令测试