Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This started out as a sendmail problem, but now I'm finding that
I cannot connect to localhost. 'telnet localhost' says 'connection
Refused'. Sendmail does it too. There were no entries at all in
/etc/hosts.allow or /etc/hosts.deny. I added 127.0.0.1 to hosts.allow.
The documentation at the top of the file says it's for tcpd, but
tcpd does not show up in '/sbin/service --status-all'. Nor does tcpd
show up when I do 'ps -ax|grep tcpd'. Also nothing about it in
/sbin/chkconfig.
How does tcpd normally get started, and is this even my problem?
telnet is off. I think that means the daemon. If sendmail is working I should
be able to 'telnet localhost 25' and get a '220:' greeting. It works from any other host on my local network.
sorry if this sounds stupid/simplistic... im just trying to help....
but what does localhost resolve to? can you ping localhost? what happens when you ping/telnet/etc 127.0.0.1? could be a very simple missing host entry problem...
Not stupid or simplistic at all. gotta rule it out...
ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.091 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.081 ms
[root@amnesia scott]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
I think it's finding the localhost ip ok, just not allowing itself in.
I can now send mail between users. The problem was the DAEMON_OPTIONS
setting in /etc/mail/sendmail.mc:
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Note how the entry with 127.0.0.1 address is commented out. I, misunderstanding the docmentation, had replaced 127.0.0.1 with my local ip addr. I didn't understand that the address must be removed entirely from the entry.
That's why I are called a newbie.
Thanks for your help pimpster. Although I did, in the final analysis, figure it out for myself, it really helps to have a little guidance along the way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.