Found mistake which cause momentary connection closing.
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
Butsyk A. wrote:
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:
exec /usr/local/bin/tcpserver -v -HRDP -l 0 -X 0 89 \
For test purpose it uses root permissions and 89 port.
When i try to connect to localhost:89 after +OK connection
#telnet 127.0.0.1 89
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
Vhostadmin includes/global.inc :
$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
Am I miss something?