Displaying 1 result from an estimated 1 matches for "7t33z456".
2013 Feb 27
2
how to talk with doveadmin unix socket
...get from strace syntax of comunication:
write(9,
"VERSION\t1\t0\nUSER\t1\tpiotr.rotter at active24.pl\tservice=doveadm\n",
60) = 60
read(9, "VERSION\t1\t1\nSPID\t20805\n", 8192) = 23
read(9,
"USER\t1\tpiotr.rotter at active24.pl\temail=piotr.rotter at active24.pl\tclear=7T33z456\thome=/vm/08/A/active24.pl/piotr.rotter/\tuid=502\tgid=502\tquota_rule=*:storage=2097152000B\tquota_rule2=*:messages=50000\n",
8169) = 196
and I wrote super simple client in php:
<?php
$sock = stream_socket_client('unix:///var/run/dovecot/doveadm-server',
$errno, $errstr);
fwrit...