LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-12-2007, 08:45 AM   #1
jariknet
Member
 
Registered: Oct 2006
Distribution: suse
Posts: 31

Rep: Reputation: 15
Talking imap server can't locate localhost


Does anyone know how to solve this problem?!
I've try to run command imapd, postfix, authdaemond and apachectl.
But, when I try to open it. It'll appear warning sign like as my title was.
Thnk's
 
Old 01-12-2007, 08:57 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Either you don't have the following in /etc/hosts:
Code:
127.0.0.1    localhost
or those daemons are running chroot'd and you don't have a copy of /etc/hosts inside their chroot (for instance, /var/spool/postfix/etc/hosts in the case of Postfix).
 
Old 01-12-2007, 09:17 AM   #3
jariknet
Member
 
Registered: Oct 2006
Distribution: suse
Posts: 31

Original Poster
Rep: Reputation: 15
still confuse.
What do u mean about don't have a copy /etc/host ?!
I'm using localhost like as you said 127.0.0.1.
Anyway this is warning sign that client accept it
"Error connecting to IMAP server: localhost.
49 : Can't assign requested address"
Thnk's
 
Old 01-12-2007, 09:56 AM   #4
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
Understanding name resolution.

network devices communicate with each other by IP addresses. in your case the server is searching for an ip address of the host localhost. this information is saved in a /etc/hosts file. 127.0.0.1 ip address points the machine to itself whatever the ip address that it has.

try to do:

Code:
ping 127.0.0.1
if it came back with a reply that means your tcp/ip stack is installed properly.

then try :

Code:
ping localhost
if you got replies that means that your /etc/hosts file is good to go. if you didn't get any replies, that will requier you to edit /etc/hosts. here is /etc/hosts file from my machine:

Code:
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.  Just add the names, addresses
#               and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1               localhost
# End of hosts.
if you have the same information in your file, ther must be a firewall running on your machine. most likely it's iptables.

try above and if you have a problem post back
 
Old 01-12-2007, 10:02 AM   #5
jariknet
Member
 
Registered: Oct 2006
Distribution: suse
Posts: 31

Original Poster
Rep: Reputation: 15
Talking

O yeah, I'm forgot to tell you. When I try to ping localhost the message appear "can't assign requested to address".
Thnk's
 
Old 01-12-2007, 10:06 AM   #6
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
try this:
Code:
ping 127.0.0.1
then tell us what happens...
 
Old 01-12-2007, 10:19 AM   #7
jariknet
Member
 
Registered: Oct 2006
Distribution: suse
Posts: 31

Original Poster
Rep: Reputation: 15
appear "can't assign requested to address"
 
Old 01-12-2007, 11:03 AM   #8
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
i have some guesses:

1- tcp/ip is not installed correctly with your os...
2- lo interface have been deleted for whatever reason....
3- your network card is messed up or the driver for the network card can't be located.
from the shell, type:
Code:
ifconfig
and post the output..

to view a list of pci devices, type the following and post the output:

Code:
/sbin/lspci
try to ping something else on your local network ... like your gateway or something.
what dist you're using? did you install the os yourself or somebody else did?

Last edited by waelaltaqi; 01-12-2007 at 11:05 AM.
 
Old 01-12-2007, 05:17 PM   #9
jariknet
Member
 
Registered: Oct 2006
Distribution: suse
Posts: 31

Original Poster
Rep: Reputation: 15
There are ed0, plip0 and lo0 if I try command ifconfig -a. And there are still running.
About lspci I can't find it in sbin directory it isn't there.
Thnk's
 
  


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
Squirrelmail Error connecting to IMAP server: tls://localhost cccc Linux - Server 4 01-12-2007 01:39 AM
Squirrelmail Error connecting to IMAP server: tls://localhost cccc Debian 1 09-18-2006 01:44 PM
Couldn't open stream {localhost/imap : 143} in /usr/local/httpd/htdocs/view.php nshoboul Linux - Newbie 12 10-24-2003 02:23 PM
Telnet localhost and telnet not from localhost for IMAP services seb77 Linux - Networking 1 10-15-2003 01:20 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:17 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