Chinaunix

标题: 请教一个postfix 问题. [打印本页]

作者: it_adwork    时间: 2008-12-25 15:48
标题: 请教一个postfix 问题.
我在安装了postfix的linux本机上使用telnet 127.0.0.1 25 ;telnet 127.0.0.1 110 ;telnet mail.adc.com 110. 都可以上postfix,

但是就是使用telnet mail adc.com 25 就不行..出现
[root@localhost named]# telnet mail.adc.com 25
Trying 192.168.1.88...
telnet: connect to address 192.168.1.88: Connection refused
telnet: Unable to connect to remote host: Connection refused

请高手出招....谢了...
作者: xieweihua    时间: 2008-12-25 15:58
netstat -a | grep smtp
提示什么?
作者: it_adwork    时间: 2008-12-25 16:05
提示:
[root@localhost etc]# netstat -a |grep smtp
tcp        0      0 localhost.localdomain:smtp  *:*                         LISTEN      
unix  2      [ ACC ]     STREAM     LISTENING     9269   private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     9321   private/bsmtp
作者: xieweihua    时间: 2008-12-25 16:15
tcp        0      0 localhost.localdomain:smtp  *:*                         LISTEN      

说明mta只是在127.0.0.1上listen
你看下你的
main.cf 中
inet_interfaces 是什么!

或者改为
inet_interfaces  = all

[ 本帖最后由 xieweihua 于 2008-12-25 16:19 编辑 ]
作者: it_adwork    时间: 2008-12-25 16:19
# Note: you need to stop/start Postfix when this parameter changes.
#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost

# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a

请问这样设置对吗?
作者: xieweihua    时间: 2008-12-25 16:45
先删除
inet_interfaces = localhost


然后postfix restart

不可以postfix  reload,一定要从起

[ 本帖最后由 xieweihua 于 2008-12-25 16:48 编辑 ]
作者: it_adwork    时间: 2008-12-25 16:51
好象这下好了..多谢了..顺便请问一下inet_interfaces = localhost这一句是不起作用的是吗?

[ 本帖最后由 it_adwork 于 2008-12-25 16:53 编辑 ]
作者: xieweihua    时间: 2008-12-25 16:52
postconf -n inet_interfaces 

输出什么??
作者: xieweihua    时间: 2008-12-25 16:53
你暂时不要用
 telnet mail.adc.com 25
用 telnet ip 25
作者: it_adwork    时间: 2008-12-25 16:54
已经好了..多谢.多谢了..
作者: xieweihua    时间: 2008-12-25 16:55
原帖由 it_adwork 于 2008-12-25 16:51 发表
好象这下好了..多谢了..顺便请问一下inet_interfaces = localhost这一句是不起作用的是吗?


是说postfix在localhost (127.0.0.1)上监听25号口,
你把它删除掉




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2