|
sendmail安装好后,telnet 110端口,无论是localhost , localhost.localdomain还是dns解析的域名及ip都成功,但telnet 25端口只有在telnet localhost 25 或是localhost.localdomain 25 或是127.0.0.1 25 才成功,用它的完整机器名及它本身的ip去telnet 25端口时去出现被拒绝的情况,我怀疑是/etc/mail/access 与/etc/mail/access.db没有转换好!望给位大虾指点!!
我的主机名为test,域名为3322.org
redhat 7.3+sendmail8.11+iamp-2001a-10
我已经建好了dns解析
完整机器名: test.3322.org IP: 10.10.10.12
telnet localhost 25
telnet localhost.localdomain 25
telnet 127.0.0.1 25
都是没问题的,但是telnet具体的域名和ip的25端口时,却出现拒绝的现象,能够ping通,我已经执行过#makemap /etc/mail/access.db < /etc/mail/access
/etc/mail/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
10.10.10.12 RELAY
10.10.10 RELAY
------------------------------------------------------------
------------------------------------------------------------
[root@test mail]# netstat -tl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:1024 *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *op3 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:10000 *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 test.3322.org:domain *:* LISTEN
tcp 0 0 test:domain *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:telnet *:* LISTEN
tcp 0 0 test:smtp *:* LISTEN
tcp 0 0 test:rndc *:* LISTEN
tcp 0 0 *:https *:* LISTEN
[root@test mail]#
------------------------------------------------------------
------------------------------------------------------------
[root@test mail]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.11.6/8.11.6; Tue, 28 Oct 2003 10:55:0
ehlo localhost
250-localhost.localdomain Hello test [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
------------------------------------------------------------
------------------------------------------------------------
[root@test mail]# telnet 10.10.10.12 25
Trying 10.10.10.12...
telnet: connect to address 10.10.10.12: Connection refused
[root@test mail]#
------------------------------------------------------------
------------------------------------------------------------
[root@test mail]# telnet test.3322.org 25
Trying 10.10.10.12...
telnet: connect to address 10.10.10.12: Connection refused
[root@test mail]#
------------------------------------------------------------ |
|