- 论坛徽章:
- 0
|
VMware下Centos 5.6 使用自带的mail命令发信无法收到信件
echo "这是一封测试邮件" | mail -v -s "Mysql 5.1手册" 281674669@qq.com
maillog日志
Mar 20 10:06:58 localhost sendmail[4747]: q2K26wpW004747: from=root, size=72, class=0, nrcpts=1, msgid=<201203200206.q2K26wpW004747@localhost.localdomain>, relay=root@localhost
Mar 20 10:06:59 localhost sendmail[4750]: q2K26wK8004750: from=<root@localhost.localdomain>, size=364, class=0, nrcpts=1, msgid=<201203200206.q2K26wpW004747@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Mar 20 10:06:59 localhost sendmail[4747]: q2K26wpW004747: to=281674669@qq.com, ctladdr=root (0/500), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30072, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q2K26wK8004750 Message accepted for delivery)
我用mail -v命令测试如下:
281674669@qq.com... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Tue, 20 Mar 2012 10:06:58 +0800
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@localhost.localdomain> SIZE=72 AUTH=root@localhost.localdomain
250 2.1.0 <root@localhost.localdomain>... Sender ok
>>> RCPT To:<281674669@qq.com>
>>> DATA
250 2.1.5 <281674669@qq.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 q2K26wK8004750 Message accepted for delivery
281674669@qq.com... Sent (q2K26wK8004750 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
请各位帮忙看下是什么问题~
PS:后来我收到一些退信,
(Deferred: Connection refused by mx1.qq.com.)
连接拒绝,是什么原因呢?
|
|