webmail problem

dan35

Verified User
Joined
Nov 21, 2004
Messages
72
I got some problems with webmail. I couldn't log in via webmail:

Warning: fsockopen(): php_network_getaddresses: gethostbyname failed in /var/www/html/webmail/inc/class.uebimiau_mail.php on line 66

Warning: fsockopen(): unable to connect to localhost:110 in /var/www/html/webmail/inc/class.uebimiau_mail.php on line 66

nor via squirrelmail:

Warning: fsockopen(): php_network_getaddresses: gethostbyname failed in /var/www/html/squirrelmail-1.4.2/functions/imap_general.php on line 454

Warning: fsockopen(): unable to connect to localhost:143 in /var/www/html/squirrelmail-1.4.2/functions/imap_general.php on line 454

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/webmail/inc/class.uebimiau_mail.php:66) in /var/www/html/webmail/msglist.php on line 21





My OS is Freebsd 5.2.1

inetd is enable, "imap4 stream tcp nowait root /usr/sbin/imapd imapd" is in inetd.

imap, exim, pop3 is all running. I can connect to server via 25, 110, 143 from outside, also can send or receive email with email clients.

maillog:
Nov 22 04:44:06 myhostname imapd[917]: Null command before authentication host=myip
Nov 22 04:44:08 myhostname imapd[917]: Missing command before authentication host=myip
Nov 22 04:44:14 myhostname imapd[917]: Command stream end of file, while reading line user=???
Nov 22 04:44:59 myhostname vm-pop3d[717]: Connect from myip
Nov 22 04:44:59 myhostname vm-pop3d[717]: User 'abc' of 'cdef.com' logged in
Nov 22 04:44:59 myhostname vm-pop3d[717]: Session ended for user: abc

exim/paniclog:
Exim configuration error in line 654 of /etc/exim.conf:
group daemon was not found
 
maybe ssl is the one. I followed this instruction: http://help.directadmin.com/item.php?id=15

error log:
2004:11:20-16:00:53: Can't connect to ssl!
2004:11:20-16:00:53: ->error ssl
2004:11:20-16:05:24: An error occurred while sending the mail
2004:11:20-16:05:49: An error occurred while sending the mail
2004:11:20-20:35:21: Can't connect to ssl!
2004:11:20-20:35:21: ->error ssl
2004:11:20-23:56:02: Can't connect to ssl!
2004:11:20-23:56:02: ->error ssl
2004:11:21-02:59:35: Can't connect to ssl!
2004:11:21-02:59:35: ->error ssl
2004:11:21-03:01:29: Can't connect to ssl!
2004:11:21-03:01:29: ->error ssl
2004:11:21-03:01:59: Can't connect to ssl!
2004:11:21-03:01:59: ->error ssl
2004:11:21-03:07:44: Can't connect to ssl!
2004:11:21-03:07:44: ->error ssl
2004:11:21-03:10:41: Ticket: Error reading ticket number from ./data/admin/next_ticket.number
2004:11:21-03:25:12: Can't connect to ssl!
2004:11:21-03:25:12: ->error ssl
2004:11:21-06:16:04: Can't connect to ssl!
2004:11:21-06:16:04: ->error ssl
2004:11:22-03:36:22: Can't connect to ssl!
2004:11:22-03:36:22: ->error ssl
 
weird problem :) All services running fine, don't know what caused this.
I've just rebuilt/install kernel and everything. It's working fine now. Problem solved!
 
For anyone else reading this message who may be having the same problem. If you see ::1 when you telnet to localhost you have

::1 yourdomain localhost

in your /etc/hosts file. If so, remove it and the problem should be fixed.
 
Back
Top