Problems with cvm-vmailmgr

"David J. Weller-Fahy" <[email protected]>
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
I'm testing out cvm-vmailmgr before changing all the services I'm using
over to cvm.  However, I can't seem to get it running.  I'm attempting
to make minimal changes to my (currently working) run scripts, and am
having no luck with either the testclient or using outlook to try and
authenticate.  My test uses qmail-pop3d.

Here's my /usr/local/bin/cvm-* files:
#v+
dave[tigger]~> la /usr/local/bin/cvm-*
-rwxr-xr-x  1 root  wheel  11927 Mar 29 22:53 /usr/local/bin/cvm-benchclient*
-rwxr-xr-x  1 root  wheel  14394 Mar 29 22:53 /usr/local/bin/cvm-checkpassword*
-rwxr-xr-x  1 root  wheel  17122 Mar 29 22:53 /usr/local/bin/cvm-pwfile*
-rwxr-xr-x  1 root  wheel  30226 Mar 29 22:53 /usr/local/bin/cvm-qmail*
-rwxr-xr-x  1 root  wheel  12182 Mar 29 22:53 /usr/local/bin/cvm-testclient*
-rwxr-xr-x  1 root  wheel  15882 Mar 29 22:53 /usr/local/bin/cvm-unix*
-rwxr-xr-x  1 root  wheel  44504 Mar 29 22:53 /usr/local/bin/cvm-vmailmgr*
-rwxr-xr-x  1 root  wheel  40276 Mar 29 22:53 /usr/local/bin/cvm-vmailmgr-local*
-rwxr-xr-x  1 root  wheel  39540 Mar 29 22:53 /usr/local/bin/cvm-vmailmgr-udp*
#v-

Here's the socket that cvm-vmailmgr-local creates:
#v+
dave[tigger]~> la /tmp/.cvm-vmailmgr
srwxrwxrwx  1 root  wheel  0 Apr  3 15:58 /tmp/.cvm-vmailmgr=
#v-

Here's my /var/svc.d/cvm-vmailmgr-local/run script:
#v+
#!/bin/sh
exec 2>&1
echo "*** Starting cvm-vmailmgr-local..."
exec env -i DEBUG=1 /usr/local/bin/softlimit -m 9000000 \
	/usr/local/bin/cvm-vmailmgr-local /tmp/.cvm-vmailmgr 2>&1
#v-

Here's my /var/svc.d/qmail-pop3d-test/run script (long lines):
#v+
#!/bin/sh
CONLIMIT=31
POPHOST=`head -1 /var/qmail/control/me`
POPDIR="Maildir"
CVM="cvm-local:/tmp/.cvm-vmailmgr"

exec 2>&1
echo "*** Starting qmail-pop3d..."
echo "*** >> configured for maildir: ${POPDIR}"
echo "*** >> cvm module: ${CVM}"
exec env -i PATH="/var/qmail/bin:$PATH" \
        envuidgid qmaild \
        softlimit -m 3000000 \
        tcpserver -v -HR -l0 \
        -c ${CONLIMIT} \
        -x /usr/local/etc/tcprules/pop3.cdb \
        0 1110 \
                recordio sh -c "qmail-popup ${POPHOST} /usr/local/bin/cvm-vmailmgr ${CVM} qmail-pop3d ${POPDIR}"
#v-

Here's the qmail-pop3d-test log trying to authenticate the virtual user
[email protected] using the password test:
#v+
@40000000424ffbb2359de22c tcpserver: status: 1/31
@40000000424ffbb235a46df4 tcpserver: pid 76801 from 192.168.1.10
@40000000424ffbb235a711bc tcpserver: ok 76801 0:192.168.1.5:1110 :192.168.1.10::1606
@40000000424ffbb235fe8c44 76801 > +OK <[email protected]>^M
@40000000424ffbb23604839c 76801 < USER [email protected]^M
@40000000424ffbb2360579b4 76801 > +OK ^M
@40000000424ffbb2360886f4 76801 < PASS test^M
@40000000424ffbb2362f7b9c tcpserver: end 76801 status 256
@40000000424ffbb23630cf74 76801 > usage: cvm-vmailmgr cvm-local:/path/to/socket
@40000000424ffbb2363119ac tcpserver: status: 0/31
@40000000424ffbb23631582c 76801 > or:    cvm-vmailmgr cvm-udp:hostname:port
@40000000424ffbb23631e8b4 76801 > -ERR authorization failed^M
@40000000424ffbb2363330d4 76801 > [EOF]
#v-

The cvm-vmailmgr-local log does not register anything during that
period, or since it started, so it's never getting accessed.

Here's using the cvm-testclient from the command line:
#v+
dave[tigger]/var/multilog/cvm-vmailmgr-local> cvm-testclient /tmp/.cvm-vmailmgr test caterva.org test
Authentication failed, error #1
#v-

So, this is leading me to believe that I've something is wrong in my set
up, but I don't (so far) see it.  If anyone has any suggestions that
would help me solve or isolate the problem, I'd appreciate it.  Also, if
I've omitted any information that's necessary for a full understanding
of my set up, please let me know.

Regards,
-- 
dave [ please don't CC me ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.