LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2005, 03:21 AM   #1
hanasi
Member
 
Registered: Jul 2005
Distribution: SUSE Linux v9.2
Posts: 85

Rep: Reputation: 15
Mail program can't reach local host


This is a new install of SUSE Linux v9.1.

I have set up the Mail program, and can send messages with no problem. An attempt to retrieve messages gets an error announcement: "Can't reach host local host".

I don't know why. Local host, with the customary IP address is included in the Network definitions in YaST. What does it REALLY want to tell me?
 
Old 07-09-2005, 10:06 PM   #2
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
my first guess is that either mail server is not listening at the address you tried to connect to, and/or firewall policy is preventing you from accessing.

i would try this. first, flush your firewall rules.

iptabels -P INPUT ACCEPT
iptables -F

(do the inpur accept just in case you have a line that sets defaul policy to drop)

then, test the mail servers active state.

telnet [ip address] 25
and
telnet 127.0.0.1 25

if 127.0.0.1 answers, and the ipaddress does not, then check the mail servers config, and make sure its listening on the servers ip address. if they both work on the first shot, check firewall rules. check to make sure port 25 is open, and that all traffic from -i lo is accepted. look for a rule similar to this to allow from localhost:

iptables -A INPUT -i lo -j ACCEPT
 
Old 07-10-2005, 12:28 AM   #3
hanasi
Member
 
Registered: Jul 2005
Distribution: SUSE Linux v9.2
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Sharaz
my first guess is that either mail server is not listening at the address you tried to connect to, and/or firewall policy is preventing you from accessing.

i would try this. first, flush your firewall rules.

iptabels -P INPUT ACCEPT
iptables -F

(do the inpur accept just in case you have a line that sets defaul policy to drop)

then, test the mail servers active state.

telnet [ip address] 25
and
telnet 127.0.0.1 25

if 127.0.0.1 answers, and the ipaddress does not, then check the mail servers config, and make sure its listening on the servers ip address. if they both work on the first shot, check firewall rules. check to make sure port 25 is open, and that all traffic from -i lo is accepted. look for a rule similar to this to allow from localhost:

iptables -A INPUT -i lo -j ACCEPT

Thanks for your reply; neither of these possibilities is the cause of the problem.
 
Old 07-10-2005, 02:06 AM   #4
hanasi
Member
 
Registered: Jul 2005
Distribution: SUSE Linux v9.2
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Sharaz
my first guess is that either mail server is not listening at the address you tried to connect to, and/or firewall policy is preventing you from accessing.

i would try this. first, flush your firewall rules.

iptabels -P INPUT ACCEPT
iptables -F

(do the inpur accept just in case you have a line that sets defaul policy to drop)

then, test the mail servers active state.

telnet [ip address] 25
and
telnet 127.0.0.1 25

if 127.0.0.1 answers, and the ipaddress does not, then check the mail servers config, and make sure its listening on the servers ip address. if they both work on the first shot, check firewall rules. check to make sure port 25 is open, and that all traffic from -i lo is accepted. look for a rule similar to this to allow from localhost:

iptables -A INPUT -i lo -j ACCEPT

I'm sorry for what must seem an abrupt reply earlier to your response. It was my first act on rolling out of the sack this morning. Here is more detail, and the results of some of your suggestions:

This installation is very new. There is no firewall yet. To be certain that there was nothing at all there, I ran your iptables commands, and got an error message that they were unrecognized.

I next tried to telnet to the ip address of the server. Because I don't know it, I tried first to ping the server with the literal address. This got me an error message saying that the command had not been implemented. How is it even possible that ping is not implemented?

What was left to do was to telnet to local host. This works, and it returned the escape character. Local host, then, is indeed defined.

The alternative you suggested was that the server might not be listening. It is not possible that the server has been offline for two days. Moreover, I experience no difficulty in retrieving mail from it with another OS on the same machine.

I hope for other suggestions from you or others, because I come up dry...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
How to reach to my mail box using text mode terminal grupoapunte Linux - Newbie 4 05-08-2005 10:03 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
can't reach outside the local network!! oyfly Linux - Networking 4 06-11-2004 08:16 AM
Store mail local and view with several mail clients... elluva Linux - Software 22 05-11-2004 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration