[root@QinRui ~]# telnet mail.immengxin.top 25
Trying 192.168.48.10...
Connected to mail.immengxin.top.
Escape character is '^]'.
220 mail.immengxin.top ESMTP Postfix
mail from:mx1 //发件人
250 2.1.0 Ok
rcpt to:mx2 //收件人
250 2.1.5 Ok
data //输入内容
354 End data with <CR><LF>.<CR><LF>
immengxin //正文部分
. //以.结束
250 2.0.0 Ok: queued as 24F558E12C9
quit //退出
221 2.0.0 Bye
Connection closed by foreign host.
连接收信服务器,测试收件
[root@immengxin ~]# telnet mail.immengxin.top 110
Trying 192.168.48.10...
Connected to mail.immengxin.top.
Escape character is '^]'.
+OK [XCLIENT] Dovecot ready.
user mx2 //登录用户
+OK
pass linux //用户密码
+OK Logged in.
list //信件 列表
+OK 1 messages:
1 389
.
top 1 389 //查看信件内容
+OK
Return-Path: <[email protected]>
X-Original-To: mx2
Delivered-To: [email protected]
Received: from QinRui (QinRui [192.168.48.10])
by mail.immengxin.top (Postfix) with SMTP id 24F558E12C9
for <mx2>; Sun, 13 Nov 2022 21:36:26 +0800 (CST)
Message-Id: <[email protected]>
Date: Sun, 13 Nov 2022 21:36:26 +0800 (CST)
From: [email protected]
immengxin
.
quit //退出
+OK Logging out.
Connection closed by foreign host.