免费注册 查看新帖 |

Chinaunix

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

[Mail] 不能发邮件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-30 20:23 |只看该作者 |倒序浏览
本帖最后由 kb2008 于 2010-08-30 20:30 编辑

[root@tv log]# uname -a
Linux tv.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

[root@tv log]# ping 163.com
PING 163.com (220.181.8.90) 56(84) bytes of data.
64 bytes from 220.181.8.90: icmp_seq=1 ttl=243 time=26.1 ms
64 bytes from 220.181.8.90: icmp_seq=2 ttl=243 time=25.8 ms

/etc/hosts.allow ,/etc/deny 都是空的



[root@tv log]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
172.17.90.46                tv.com


日志:
Aug 30 20:17:09 tv sendmail[5624]: o7UCH76j005622: to=<aa@orient.com>, ctladdr=<root@tv.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120340, relay=218.242.165.4. [218.242.165.4], dsn=5.0.0, stat=Service unavailable
Aug 30 20:17:09 tv sendmail[5624]: o7UCH76j005622: o7UCH96j005624: DSN: Service unavailable
Aug 30 20:17:09 tv sendmail[5624]: o7UCH96j005624: to=<root@tv.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31566, dsn=2.0.0, stat=Sent



-------------------
使用 mail  向外发邮件,sendmail 未做改动
在同一网段的另外一台机器,配置都是一样的,却可以发邮件~~~~

论坛徽章:
0
2 [报告]
发表于 2010-08-31 11:00 |只看该作者
服务不可达
机器能上网么

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
3 [报告]
发表于 2010-08-31 11:42 |只看该作者
服务启动了么? netstat -ntpl 看看

论坛徽章:
0
4 [报告]
发表于 2010-08-31 12:47 |只看该作者
本帖最后由 kb2008 于 2010-08-31 12:50 编辑

回复 2# xuledw

能ping 通  163.com


[root@tv objects]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      4986/hpiod
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      4762/portmap
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      5017/cupsd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      5050/sendmail: acce



-------------------------------------------------

现在又可以正常发了

Aug 31 12:44:05 tv sendmail[5807]: o7V4i5rt005807: from=root, size=58, class=0, nrcpts=1, msgid=<201008310444.o7V4i5rt005807@tv.com>, relay=root@localhost
Aug 31 12:44:05 tv sendmail[5808]: o7V4i50j005808: from=<root@tv.com>, size=314, class=0, nrcpts=1, msgid=<201008310444.o7V4i5rt005807@tv.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Aug 31 12:44:05 tv sendmail[5807]: o7V4i5rt005807: to=aa@orientpay.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (o7V4i50j005808 Message accepted for delivery)
Aug 31 12:44:06 tv sendmail[5810]: o7V4i50j005808: to=<aa@orientpay.com>, ctladdr=<root@tv.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120314, relay=218.242.165.4. [218.242.165.4], dsn=2.0.0, stat=Sent (ok message accepted for delivery)

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
5 [报告]
发表于 2010-09-01 08:56 |只看该作者
检查下防火墙设置

论坛徽章:
0
6 [报告]
发表于 2010-09-01 09:23 |只看该作者
本帖最后由 kb2008 于 2010-09-01 09:25 编辑

这台 机器上面的iptables 是关闭的,而且在同一网段的 机器是可以发,所以我认为不是防火墙的问题;
我开始gg的时候,有人说可能是 hostname的设置问题,我改了,重启了机器,当时是不可以的;
不知道为什么,第二天又可以了...............................................


[root@tv install]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


-----------------------------------

错误原因找不到,为什么好了也不知道,哎............................................

论坛徽章:
1
天秤座
日期:2013-10-23 13:20:42
7 [报告]
发表于 2010-09-01 10:46 |只看该作者
LZ,你说另外一台机器可以发成功,是发什么地址成功,有些时候,并不是你发不成功,而是发成功了,给对方邮件服务器给过滤了,root@tv.com,这个地址,有的收件邮件服务器要检查,地址的合法性,这个,可以通过sendmail的一个option
-- -f 见发邮件人的邮件地址来解决。

ps:lz,看看发到gmail,如何,gmail没有这个现在,国内的邮箱基本都有这个限制
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP