Webmail not working

verruckt

Verified User
Joined
Mar 8, 2004
Messages
52
Webmail not working *fixed*

My webmail pages are showing up just fine, however noone is able to log into webmail; any of them. Here is the error I'm recieving..

ERROR (2): fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known (/var/www/html/webmail/inc/class.uebimiau_mail.php:80)

Searching the forums, i came across this thread that the user described a similar problem to mine..
http://www.directadmin.com/forum/showthread.php?t=19542&highlight=login+webmail
In that thread it was suggested to edit the /etc/hosts file. I commented out the line that was in there, and added my localhost information. Here is my /etc/hosts file..
--------------------------

# Do not remove the following line, or various programs
# that require network functionality will fail.
#::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost6 localhost6.localdomain6
123.123.123.123 my.server.hostname

---------------------------

my system os: CentOS5.2 i386
I would appreciate any ideas, or suggestions. Thank you.
 
Last edited:
the 127 line is wrong. Change it to:

127.0.0.1 localhost localhost
 
the 127 line is wrong. Change it to:

127.0.0.1 localhost localhost


Thnx Scsi, that did it.

Just for my own notes, was there something from the install of DA or my os that may have caused that odd entry?
 
Back
Top