linux邮箱服务器发不起邮件,能接收邮件。

jiangjungege6 2011-07-18 05:26:26
一向外面发邮件,马上系统就回一个下面的这个:

The original message was received at Mon, 18 Jul 2011 17:16:38 +0800
from root@localhost

----- The following addresses had permanent fatal errors -----
89103865@qq.com
(reason: 550 5.1.1 <89103865@qq.com>... User unknown)
(expanded from: 89103865@qq.com)

----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <89103865@qq.com>... User unknown
550 5.1.1 89103865@qq.com... User unknown
<<< 503 5.0.0 Need RCPT (recipient)


我的DNS是在域名提供商那里用MX记录解析过来的。
能收到邮件,就是不能发。系统是CentOS Linux 5.4
用的系统自带的SENDMAIL配置的邮件服务器。
...全文
591 32 打赏 收藏 转发到动态 举报
写回复
用AI写文章
32 条回复
切换为时间正序
请发表友善的回复…
发表回复
jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 30 楼 steptodream 的回复:]
检查你的sendmail配置 因为我一直使用postfix 所以sendmail的配置文件我也不是很懂
[/Quote]
再等下,看有人能解决不。一会结贴。
steptodream 2011-07-19
  • 打赏
  • 举报
回复
检查你的sendmail配置 因为我一直使用postfix 所以sendmail的配置文件我也不是很懂
jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
我的 /etc/hosts 是这样的

# Do not remove the following line, or various programs
# that require network functionality will fail.
118.123.13.130 west263 localhost.localdomain localhost
118.123.13.130 hunli.cn
118.123.13.130 smtp.hunli.cn
::1 localhost6.localdomain6 localhost6

jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 25 楼 steptodream 的回复:]
那你再确认一下下面这些信息及解决方法:
1.118.123.13.130这个是你的邮件服务器吧 在DNS里正向和反向解析都设置了吗?
2.如果DNS里没有设置,这下试试本地解析/etc/hosts
118.123.13.130 smtp.hunli.cn
3.把你昨天改的地方改回127.0.0.1
[/Quote]
邮件 ID 发送时间 来自 发往 大小 状态
qfp6J2gNdJ017186 2011/07/19 10:42 info@hunli.cn "web'service" <89103865@qq.com> 1.27 kB Deferred: Connection timed out with 118.123.13.130.

按照你的方法,还是一样的。主席,怎么办呀。
jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 25 楼 steptodream 的回复:]
那你再确认一下下面这些信息及解决方法:
1.118.123.13.130这个是你的邮件服务器吧 在DNS里正向和反向解析都设置了吗?
2.如果DNS里没有设置,这下试试本地解析/etc/hosts
118.123.13.130 smtp.hunli.cn
3.把你昨天改的地方改回127.0.0.1
[/Quote]
1.118.123.13.130这个是你的邮件服务器吧 在DNS里正向和反向解析都设置了吗?
这个我们是用的域名提空商里,把info通过mx记录解析到 118.123.13.130 相当于info@XXX.cn 就能用了嘛。
反向解析,我不会用呀。昨天也了解了一下,不知道怎么设置反向解析。

2.如果DNS里没有设置,这下试试本地解析/etc/hosts
这个我马上试。

3.把你昨天改的地方改回127.0.0.1
马上改回来试下,看结果。
steptodream 2011-07-19
  • 打赏
  • 举报
回复
你还是把防火墙打开吧 说明你的防火墙没有阻挡 我这里都连上你服务器的25和587端口
/etc/init.d/iptables start
steptodream 2011-07-19
  • 打赏
  • 举报
回复
那你再确认一下下面这些信息及解决方法:
1.118.123.13.130这个是你的邮件服务器吧 在DNS里正向和反向解析都设置了吗?
2.如果DNS里没有设置,这下试试本地解析/etc/hosts
118.123.13.130 smtp.hunli.cn
3.把你昨天改的地方改回127.0.0.1

jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 22 楼 steptodream 的回复:]
另外把你的/var/log/maillog里最新的邮件日志 给我看看
[/Quote]
Jul 19 09:44:59 west263 sendmail[13698]: p6J1ixqw013698: to=webmaster@qudati.com, ctladdr=info@hunli.cn (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30468, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p6J1ixHr013699 Message accepted for delivery)
Jul 19 09:45:09 west263 sendmail[13643]: restarting /usr/sbin/sendmail due to signalJul 19 09:45:09 west263 sm-msp-queue[13645]: restarting /usr/sbin/sendmail due to signal
Jul 19 09:45:09 west263 sm-msp-queue[13719]: starting daemon (8.13.8): queueing@01:00:00
Jul 19 09:45:09 west263 sendmail[13721]: starting daemon (8.13.8): SMTP+queueing@01:00:00Jul 19 09:45:59 west263 sendmail[13701]: p6J1ixHr013699: to=<webmaster@qudati.com>, ctladdr=<info@hunli.cn> (505/505), delay=00:01:00, xdelay=00:01:00, mailer=relay, pri=120595, relay=118.123.13.130. [61.139.8.100], dsn=4.0.0, stat=Deferred: Connection timed out with 118.123.13.130.
Jul 19 09:46:57 west263 sendmail[13721]: restarting /usr/sbin/sendmail due to signalJul 19 09:46:57 west263 sm-msp-queue[13719]: restarting /usr/sbin/sendmail due to signal
Jul 19 09:46:57 west263 sendmail[13840]: starting daemon (8.13.8): SMTP+queueing@01:00:00
Jul 19 09:46:57 west263 sm-msp-queue[13842]: starting daemon (8.13.8): queueing@01:00:00
Jul 19 09:47:35 west263 sendmail[13898]: p6J1lTfP013898: from=info@hunli.cn, size=523, class=0, nrcpts=1, msgid=<1311040049.13894@hunli.cn>, relay=root@localhostJul 19 09:47:35 west263 sendmail[13906]: p6J1lZr6013906: from=<info@hunli.cn>, size=650, class=0, nrcpts=1, msgid=<1311040049.13894@hunli.cn>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] (may be forged)Jul 19 09:47:35 west263 sendmail[13898]: p6J1lTfP013898: to=webmaster@qudati.com, ctladdr=info@hunli.cn (0/0), delay=00:00:06, xdelay=00:00:00, mailer=relay, pri=30523, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p6J1lZr6013906 Message accepted for delivery)Jul 19 09:47:58 west263 sendmail[13841]: p6J1ixHr013699: to=<webmaster@qudati.com>, ctladdr=<info@hunli.cn> (505/505), delay=00:02:59, xdelay=00:01:01, mailer=relay, pri=210595, relay=118.123.13.130. [61.139.8.100], dsn=4.0.0, stat=Deferred: Connection timed out with 118.123.13.130.Jul 19 09:48:35 west263 sendmail[13908]: p6J1lZr6013906: to=<webmaster@qudati.com>, ctladdr=<info@hunli.cn> (505/505), delay=00:01:00, xdelay=00:01:00, mailer=relay, pri=120650, relay=118.123.13.130. [61.139.8.100], dsn=4.0.0, stat=Deferred: Connection timed out with 118.123.13.130.
Jul 19 09:55:29 west263 sendmail[14418]: p6J1tOIC014418: gw-oga.kansai-bb.com [219.99.65.12] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTAJul 19 09:56:27 west263 sendmail[14499]: p6J1uRNU014499: from=<89103865@qq.com>, size=1593, class=0, nrcpts=1, msgid=<tencent_702C630F28381B576A55D3F0@qq.com>, proto=SMTP, daemon=MTA, relay=SMTPBG265.QQ.COM [183.62.104.146]Jul 19 09:56:27 west263 sendmail[14502]: p6J1uRNU014499: to=<info@hunli.cn>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31787, dsn=2.0.0, stat=Sent
Jul 19 10:18:44 west263 sendmail[15750]: p6J2IcZg015750: gw-oga.kansai-bb.com [219.99.65.12] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTAJul 19 10:18:50 west263 sendmail[15762]: p6J2IlEq015762: gw-oga.kansai-bb.com [219.99.65.12] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Jul 19 10:19:43 west263 sendmail[15904]: p6J2JhKu015904: from=info@hunli.cn, size=576, class=0, nrcpts=1, msgid=<1311041983.15902@hunli.cn>, relay=root@localhostJul 19 10:19:43 west263 sendmail[15905]: p6J2JhDW015905: from=<info@hunli.cn>, size=703, class=0, nrcpts=1, msgid=<1311041983.15902@hunli.cn>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] (may be forged)Jul 19 10:19:43 west263 sendmail[15904]: p6J2JhKu015904: to="web'service" <89103865@qq.com>, ctladdr=info@hunli.cn (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30576, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p6J2JhDW015905 Message accepted for delivery)Jul 19 10:20:43 west263 sendmail[15907]: p6J2JhDW015905: to=<89103865@qq.com>, ctladdr=<info@hunli.cn> (505/505), delay=00:01:00, xdelay=00:01:00, mailer=relay, pri=120703, relay=118.123.13.130. [61.139.8.100], dsn=4.0.0, stat=Deferred: Connection timed out with 118.123.13.130.
jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 19 楼 steptodream 的回复:]
关闭
/etc/init.d/iptables stop
[/Quote]
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: nat mangle filter [ OK ]
Unloading iptables modules: [ OK ]

依然出现这种情况哈。

邮件 ID 发送时间 来自 发往 大小 状态
qfp6J1ixHr013699 2011/07/19 09:44 info@hunli.cn webmaster@qudati.com 1.01 kB Deferred: Connection timed out with 118.123.13.130.
qfp6J1lZr6013906 2011/07/19 09:47 info@hunli.cn webmaster@qudati.com 1.23 kB Deferred: Connection timed out with 118.123.13.130.
qfp6J2JhDW015905 2011/07/19 10:19 info@hunli.cn "web'service" <89103865@qq.com> 1.27 kB Deferred: Connection timed out with 118.123.13.130.

啊,好恼火呀。。
steptodream 2011-07-19
  • 打赏
  • 举报
回复
另外把你的/var/log/maillog里最新的邮件日志 给我看看
steptodream 2011-07-19
  • 打赏
  • 举报
回复
但是我刚才也说了 并不一定是防火墙的原因 也可能是你sendmail里的一些发送限制的规则
我对sendmail不是很熟悉 比如postfix里就有很多这样的设置参数。
天亮后说晚安 2011-07-19
  • 打赏
  • 举报
回复
主席太强悍了
steptodream 2011-07-19
  • 打赏
  • 举报
回复
关闭
/etc/init.d/iptables stop
jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 17 楼 steptodream 的回复:]
为昨天不是提示... while talking to [127.0.0.1] 我以为是这两个文件里的127.0.0.1要改成118.123.13.130 。
------------
127.0.0.1就可以

我们用的西部数码的LINUX服务器。系统是CentOS Linux 5.4 应该没有防火墙吧
-----------------
CentOS默认就带防火墙 再说 有没有……
[/Quote]

这个,我还是新手呀。不知道怎么确认有没有防火墙,也不知道怎么把防火墙去掉呀。很尴尬。
要不你好事做到底,就教下我方法嘛。嘿嘿。
steptodream 2011-07-19
  • 打赏
  • 举报
回复
为昨天不是提示... while talking to [127.0.0.1] 我以为是这两个文件里的127.0.0.1要改成118.123.13.130 。
------------
127.0.0.1就可以

我们用的西部数码的LINUX服务器。系统是CentOS Linux 5.4 应该没有防火墙吧
-----------------
CentOS默认就带防火墙 再说 有没有带 你自己不能确认下么?

现在的问题已经显而易见了 是你自己的smtp服务器拒绝了。
jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 14 楼 steptodream 的回复:]
邮件 ID 发送时间 来自 发往 大小 状态
qfp6J1ixHr013699 2011/07/19 09:44 info@hunli.cn webmaster@***.com 1.01 kB Deferred: Connection timed out with 118.123.13.130.

还是这种情况哈,我换了个域名也发不起,是不是我没安装POP3服务的问题?
----……
[/Quote]

118.123.13.130 这个是我们的服务器IP。因为昨天发不起邮件,我就改了/etc/mail/sendmail.cf 和 /etc/mail/submit.cf 我把里面的127.0.0.1 改成了118.123.13.130 。因为昨天不是提示... while talking to [127.0.0.1] 我以为是这两个文件里的127.0.0.1要改成118.123.13.130 。

我们用的西部数码的LINUX服务器。系统是CentOS Linux 5.4 应该没有防火墙吧,而且这个sendmail是系统自带的。已经安装好了的。
steptodream 2011-07-19
  • 打赏
  • 举报
回复
还有你一开始再强调发件不成功 说收件没问题 所以更能说明你不需要安装POP3 imap等收信协议的软件。
steptodream 2011-07-19
  • 打赏
  • 举报
回复
邮件 ID 发送时间 来自 发往 大小 状态
qfp6J1ixHr013699 2011/07/19 09:44 info@hunli.cn webmaster@***.com 1.01 kB Deferred: Connection timed out with 118.123.13.130.

还是这种情况哈,我换了个域名也发不起,是不是我没安装POP3服务的问题?
------------------------
你首先要看问题的详细信息 不能瞎猜 POP3是收件协议 和你发邮件有什么关系?!
注意Connection timed out with 118.123.13.130. 这句 你的连接被118.123.13.130拒绝了 这个是你自己的smtp服务器的ip 还是对方的?
如果是你自己的smtp服务器 为什么连接会被118.123.13.130拒绝?
1.防火墙? 2.邮件服务器的设定文件里设置了过滤规则? ......
jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
邮件 ID 发送时间 来自 发往 大小 状态
qfp6J1ixHr013699 2011/07/19 09:44 info@hunli.cn webmaster@***.com 1.01 kB Deferred: Connection timed out with 118.123.13.130.

还是这种情况哈,我换了个域名也发不起,是不是我没安装POP3服务的问题?

10.先启动sendmail,再安装 rpm -i imap-2001a-18.i386.rpm(没有的包可用 yum -y install xinetd 类似这样安装),装完后到/usr/sbin目录中就可以找到imapd、ipop2d、ipop3d这3个文件。其实安装完后就没必要去查看了,接下来就把那3个文件相对的服务启动起来就可以了,可以用xinetd来启动比较方便。

这一步配置我没有做,因为按照它的方法在/usr/sbin目录中基本找不到imapd、ipop2d、ipop3d这3个文件。

jiangjungege6 2011-07-19
  • 打赏
  • 举报
回复
[Quote=引用 11 楼 steptodream 的回复:]
引用 10 楼 jiangjungege6 的回复:

引用 9 楼 steptodream 的回复:
引用 8 楼 jiangjungege6 的回复:

邮件跑到“邮件队列”变成了这样了。
邮件 ID 发送时间 来自 发往 大小 状态
qfp6J15uSm010384 2011/07/19 09:05 info@hunli.cn 89103865@qq.com 1.23 kB D……
[/Quote]
我LINUX上没有安装DNS服务器。
加载更多回复(12)

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧