2024年4月21日发(作者:)
SMTP发送邮件测试
(无SMTP用户认证)
Windows XP 上使用命令登录邮件服务器发送邮件:
登录邮件服务器
没有身份验证,直接
以用户xp的身份发
送邮件到我的邮箱
使用Foxmail接收到邮件:
通过互联网收到了
邮件
1
在Linux邮件服务器上使用命令发送邮件:
[root@mail ~]# telent localhost 25
bash: telent: command not found
[root@mail ~]# telnet localhost 25
Trying 127.0.
Connected to omain (127.0.0.1).
Escape character is '^]'.
没有身份验证,直接以用
220 ESMTP Postfix
户qq@的身份发送
helo localhost
250
mail from: qq@
250 2.1.0 Ok
邮件到我的邮箱
rcpt to: @
250 2.1.5 Ok
data
354 End data with
subject: mail test
this is test mail, come form qq@
.
250 2.0.0 Ok: queued as 7FC182683D6
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@mail ~]#
使用Foxmail接收到邮件:
通过互联网收到
了邮件
2
在Linux服务器上给系统邮件用户lisi发送邮件:
[root@mail ~]# telnet localhost 25
Trying 127.0.
Connected to omain (127.0.0.1).
Escape character is '^]'.
220 ESMTP Postfix
helo localhost
250
mail from: admin@
250 2.1.0 Ok
rcpt to: lisi@
250 2.1.5 Ok
data
354 End data with
subject: test mail
Hello!
this is a test mail, come from .
.
250 2.0.0 Ok: queued as 5AF0B2683D6
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@mail ~]#
在Linux服务器上使用POP3接收邮件测试:
3
[root@mail ~]# telnet localhost 110
Trying 127.0.
Connected to omain (127.0.0.1).
Escape character is '^]'.
+OK Dovecot ready.
user lisi
+OK
pass a
+OK Logged in.
list
+OK 1 messages:
1 497
.
retr 1
+OK 497 octets
Return-Path:
X-Original-To: lisi@
Delivered-To: lisi@
Received: from localhost (omain [127.0.0.1])
by (Postfix) with SMTP id 5AF0B2683D6
for
subject: test mail
Message-Id: <21.5AF0B2683D6@>
Date: Wed, 22 Dec 2010 21:37:57 +0800 (CST)
From: admin@
To: undisclosed-recipients:;
Hello!
this is a test mail, come from .
.
quit
+OK Logging out.
Connection closed by foreign host.
[root@mail ~]#
4


发布评论