1. You can see my IP is 192.168.0.104
[root@red10 /]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:BA3:5B:8D
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24907 errors:0 dropped:0 overruns:0 frame:0
TX packets:19063 errors:0 dropped:0 overruns:0 carrier:0
collisions:624 txqueuelen:100
RX bytes:3587126 (3.4 Mb) TX bytes:2844205 (2.7 Mb)
Interrupt:9 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5940 (5.8 Kb) TX bytes:5940 (5.8 Kb)
2. I can telnet to STMP on lo interface
[root@red10 /]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.11.6/8.11.6; Thu, 4 Jul 2002 15:46:32
-0400
help
214-2.0.0 This is sendmail version 8.11.6
214-2.0.0 Topics:
214-2.0.0 HELO EHLO MAIL RCPT DATA
214-2.0.0 RSET NOOP QUIT HELP VRFY
214-2.0.0 EXPN VERB ETRN DSN AUTH
214-2.0.0 STARTTLS
214-2.0.0 For more info use "HELP <topic>".
214-2.0.0 To report bugs in the implementation send email to
214-2.0.0 sendmail-bugs@sendmail.org.
214-2.0.0 For local information send email to Postmaster at your site.
214 2.0.0 End of HELP info
quit
221 2.0.0 localhost.localdomain closing connection
Connection closed by foreign host.
3. But I can't telnet on eth0(on the same machine)
[root@red10 /]# telnet 192.168.0.104 25
Trying 192.168.0.104...
telnet: connect to address 192.168.0.104: Connection refused
4. Neither can I telnet from another machine
[root@weatogue include]# telnet 192.168.0.104 25
Trying 192.168.0.104...
telnet: Unable to connect to remote host: Connection refused
[root@weatogue include]#
5. Here's my /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
sshd: ALL
# ftp: * :ALLOW
# ftpd: * :ALLOW
# wu-ftp: * :ALLOW
# wu-ftpd: * :ALLOW
telnet: *
smtp: * : ALLOW
# telnetd: * :ALLOW
# ALL: ALL
# in.telnetd: *
6. Here's my /etc/mail/access
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.0.104 RELAY
192.168.0.1 RELAY
192.168.0.101 RELAY
7. I can telnet to the POP3 service on .104 from machine .101 or .104
[root@weatogue include]# telnet 192.168.0.104 110
Trying 192.168.0.104...
Connected to 192.168.0.104.
Escape character is '^]'.
+OK POP3 itnamics v2000.70rh server ready
quit
+OK Sayonara
Connection closed by foreign host.
Question: Can you please tell me what's going on? How can I enable other machines to access this SMTP?
[root@red10 /]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:BA3:5B:8D
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24907 errors:0 dropped:0 overruns:0 frame:0
TX packets:19063 errors:0 dropped:0 overruns:0 carrier:0
collisions:624 txqueuelen:100
RX bytes:3587126 (3.4 Mb) TX bytes:2844205 (2.7 Mb)
Interrupt:9 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5940 (5.8 Kb) TX bytes:5940 (5.8 Kb)
2. I can telnet to STMP on lo interface
[root@red10 /]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.11.6/8.11.6; Thu, 4 Jul 2002 15:46:32
-0400
help
214-2.0.0 This is sendmail version 8.11.6
214-2.0.0 Topics:
214-2.0.0 HELO EHLO MAIL RCPT DATA
214-2.0.0 RSET NOOP QUIT HELP VRFY
214-2.0.0 EXPN VERB ETRN DSN AUTH
214-2.0.0 STARTTLS
214-2.0.0 For more info use "HELP <topic>".
214-2.0.0 To report bugs in the implementation send email to
214-2.0.0 sendmail-bugs@sendmail.org.
214-2.0.0 For local information send email to Postmaster at your site.
214 2.0.0 End of HELP info
quit
221 2.0.0 localhost.localdomain closing connection
Connection closed by foreign host.
3. But I can't telnet on eth0(on the same machine)
[root@red10 /]# telnet 192.168.0.104 25
Trying 192.168.0.104...
telnet: connect to address 192.168.0.104: Connection refused
4. Neither can I telnet from another machine
[root@weatogue include]# telnet 192.168.0.104 25
Trying 192.168.0.104...
telnet: Unable to connect to remote host: Connection refused
[root@weatogue include]#
5. Here's my /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
sshd: ALL
# ftp: * :ALLOW
# ftpd: * :ALLOW
# wu-ftp: * :ALLOW
# wu-ftpd: * :ALLOW
telnet: *
smtp: * : ALLOW
# telnetd: * :ALLOW
# ALL: ALL
# in.telnetd: *
6. Here's my /etc/mail/access
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.0.104 RELAY
192.168.0.1 RELAY
192.168.0.101 RELAY
7. I can telnet to the POP3 service on .104 from machine .101 or .104
[root@weatogue include]# telnet 192.168.0.104 110
Trying 192.168.0.104...
Connected to 192.168.0.104.
Escape character is '^]'.
+OK POP3 itnamics v2000.70rh server ready
quit
+OK Sayonara
Connection closed by foreign host.
Question: Can you please tell me what's going on? How can I enable other machines to access this SMTP?