LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 927|回复: 3

为什么我的sendmail不能正常25 号端口?

[复制链接]
发表于 2004-5-26 12:05:09 | 显示全部楼层 |阅读模式
我的mail的dns为mail.ftylmj.com
sendmail.cf我修改了:
C{w}localhost.localdomain为
C{w}mail.ftylmj.com

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA为

O DaemonPortOptions=Port=smtp,Addr=192.168.0.102, Name=MTA


access为# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
ftylmj.com                      RELAY
192.168                RELAY

重启显示为:            

[root@dns mail]# /etc/rc.d/init.d/sendmail restart
¹Ø±Õ sendmail£º                                            [  È·¶¨  ]
¹Ø±Õ sm-client£º                                           [  È·¶¨  ]
Æô¶¯ sendmail£ºmake: *** Warning: File `submit.cf' has modification time in the future (2004-05-27 06:32:14 > 2004-05-26 11:57:47.672459)
make: warning:  Clock skew detected.  Your build may be incomplete.
[root@dns mail]# nmap -O 127.0.0.1

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on dns (127.0.0.1):
(The 1594 ports scanned but not shown below are in state: closed)
Port       State       Service
22/tcp     open        ssh
110/tcp    open        pop-3
111/tcp    open        sunrpc
631/tcp    open        ipp
995/tcp    open        pop3s
1024/tcp   open        kdm
1025/tcp   open        NFS-or-IIS

不知为什么25  没有起来??

谢!
发表于 2004-5-26 12:16:13 | 显示全部楼层
必须把这句给注销掉,否则系统只能向自己收邮件,你改了ip也没用的。
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
 楼主| 发表于 2004-5-26 13:08:37 | 显示全部楼层

谢谢!!

经过上面的修改后:
telnet 192.168.0.102

但是我在telnet时出现如下就停了
220 localhost.localdomain ESMTP Sendmail 8.12.8/8.12.8; Wed, 26 May 2004 13:03:1
4 +0800
telnet本机时出现:
[root@dns mail]# telnet: connect to address 127.0.0.1: Connection refused
-bash: telnet:: command not found

且只能接收本地邮件。外网的邮件能相互发送,但并不能真接接收到信件
不知哪出错了?
发表于 2004-5-26 18:39:51 | 显示全部楼层
telnet后要加上端口

#telnet 192.168.0.102 25
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表