免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1364 | 回复: 2
打印 上一主题 下一主题

[Mail] 请教 mail 发送邮件出错!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-17 18:06 |只看该作者 |倒序浏览
我想利用mail命令发送文本到我的邮箱,可是执行的时候出错了,请各位高手指点:
# cat a.txt
adafdas
# cat a.txt | mail -s "aa" aaa@21cn.com

#cat /var/spool/mail/root
From MAILER-DAEMON@hpserver  Mon Jan 17 17:53:07 2005
Return-Path: <MAILER-DAEMON@hpserver>;
Received: from localhost (localhost)
        by hpserver (8.12.11/8.12.11) id j0H9r7gc001851;
        Mon, 17 Jan 2005 17:53:07 +0800
Date: Mon, 17 Jan 2005 17:53:07 +0800
From: Mail Delivery Subsystem <MAILER-DAEMON@hpserver>;
Message-Id: <200501170953.j0H9r7gc001851@hpserver>;
To: <root@hpserver>;
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="j0H9r7gc001851.1105955587/hpserver"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--j0H9r7gc001851.1105955587/hpserver

The original message was received at Mon, 17 Jan 2005 17:53:02 +0800
from local [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<aaa@21cn.com>;
    (reason: 554 Connection refused(mx). MAIL FROM [root@hpserver] mismatches client IP [61.51.130.253].)

   ----- Transcript of session follows -----
... while talking to mta2.21cn.com.:
>;>;>; MAIL From:<root@hpserver>;

<<< 554 Connection refused(mx). MAIL FROM [root@hpserver] mismatches client IP [61.51.130.253].
554 5.0.0 Service unavailable
--j0H9r7gc001851.1105955587/hpserver
Content-Type: message/delivery-status

Reporting-MTA: dns; hpserver
Received-From-MTA: DNS; local
Arrival-Date: Mon, 17 Jan 2005 17:53:02 +0800

Final-Recipient: RFC822; aaa@21cn.com
Action: failed
Status: 5.0.0
Diagnostic-Code: SMTP; 554 Connection refused(mx). MAIL FROM [root@hpserver] mismatches client IP [61.51.130.253].
Last-Attempt-Date: Mon, 17 Jan 2005 17:53:07 +0800

--j0H9r7gc001851.1105955587/hpserver
Content-Type: message/rfc822

Return-Path: <root@hpserver>;
Received: from hpserver (local [127.0.0.1])
        by hpserver (8.12.11/8.12.11) with ESMTP id j0H9r2gc001849
        for <aaa@21cn.com>;; Mon, 17 Jan 2005 17:53:02 +0800
Received: (from root@localhost)
        by hpserver (8.12.11/8.12.11/Submit) id j0H9r2MF001830
        for aaa@21cn.com; Mon, 17 Jan 2005 17:53:02 +0800
Date: Mon, 17 Jan 2005 17:53:02 +0800
From: root <root@hpserver>;
Message-Id: <200501170953.j0H9r2MF001830@hpserver>;
To:aaa@21cn.com
Subject: aa

adfadflajfa

--j0H9r7gc001851.1105955587/hpserver--

论坛徽章:
0
2 [报告]
发表于 2005-01-17 18:08 |只看该作者

请教 mail 发送邮件出错!!

大家帮我看看:为什么会有这个错误,怎么解决:
(reason: 554 Connection refused(mx). MAIL FROM [root@hpserver] mismatches client IP [61.51.130.253].)
现在我的sendmail是开着的

论坛徽章:
0
3 [报告]
发表于 2005-01-17 18:15 |只看该作者

请教 mail 发送邮件出错!!

21cn把你的信当作垃圾邮件退信了
事实上国内的ICP邮箱收信规则都是粉BT的
大多数需要mx验证,最郁闷的是sina的信箱,需要域名反解~-~
找个yahoo或者gmail的邮箱试一下,你的配置应该没问题了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP