Hi list.

Found mistake which cause momentary connection closing.
vpopmaild.c
line 202
...
if ( (write_size = fputs(WriteBuf,stdout) <= 0) ) exit(-1);
..

have to be
if ( (write_size = fputs(WriteBuf,stdout) < 0) ) exit(-1);
follow man fputs: "... The fputs() function returns 0 on success and EOF on error;.."

Best regards,
Butsyk A.

Butsyk A. wrote:

Hi list.

I'd like to try vhostadmin but have a problem to login with vhostadmin.

Vhostadmin uses vpopmaild to co-operate with vpopmail.
Here is vpopmaild/run script:

#!/bin/sh
exec /usr/local/bin/tcpserver -v -HRDP -l 0 -X  0 89 \
   /usr/local/vpopmail/bin/vpopmaild 2>&1

For test purpose it uses root permissions and 89 port.
When i try to connect to localhost:89 after +OK connection instantaneously closed.

#telnet 127.0.0.1 89
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK
Connection closed by foreign host.

Vhostadmin includes/global.inc :
...
/*
 vpopmaild configuration
*/

$vd_host = "127.0.0.1";
$vd_port = "89";
$vd_sock = 0;
$vd_conn = 0;
$vd_auth = array();
...

Vhostadmin can't login user with this errors:

vpopmaild_read: socket_read failed: 54
vpopmaild_auth_flags: vpopmaild_read failed
vpopmaild_connect: vpopmaild_auth_flags failed
vpopmaild_connect failed

Am I miss something?


Best regards,
Butsyk.



Reply via email to