Re: Problems with cvm-vmailmgr
"David J. Weller-Fahy" <[email protected]>
| Newsgroups | gmane.comp.sysutils.bgware |
|---|---|
| Message-ID | <[email protected]> |
* Dale Woolridge <[email protected]> [2005-04-03 20:11 +0200]: > On 3-Apr-2005 16:44 David J. Weller-Fahy wrote: > | recordio sh -c "qmail-popup ${POPHOST} /usr/local/bin/cvm-vmailmgr ${CVM} qmail-pop3d ${POPDIR}" > > Replace cvm-vmailmgr with cvm-checkpassword. Note that with this > particular setup, your run script shell variables are not exported, so > they aren't available to the invoked subshell in the above line. > Either export them or get rid of recordio+subshell. Excellent point, thanks for that. I've removed the 'sh -c' portion, and replaced cvm-vmailmgr with cvm-checkpassword. Having better luck, now, as I've been able to get the cvm-unix working, but still not getting anywhere with the cvm-vmailmgr. I've also changed the ${CVM} variable to CVM="cvm-vmailmgr" (I believe that's correct). > You didn't mention what you saw, if anything, the the > cvm-vmailmgr-local logs when you used cvm-testclient. Well, here's the log from the most recent session, using #v+ recordio qmail-popup ${POPHOST} /usr/local/bin/cvm-checkpassword ${CVM} qmail-pop3d ${POPDIR} #v- in place of the line you quoted above. The qmail-pop3d-test log when I try to retrieve the mail is: #v+ @40000000425057132b5f050c tcpserver: status: 1/31 @40000000425057132b65b3fc tcpserver: pid 85139 from 192.168.1.10 @40000000425057132b685bac tcpserver: ok 85139 0:192.168.1.5:1110 :192.168.1.10::2800 @40000000425057132c613e84 85139 > +OK <[email protected]>^M @40000000425057132c6695b4 85139 < USER [email protected]^M @40000000425057132c678fb4 85139 > +OK ^M @40000000425057132c6a7db4 85139 < PASS test^M @40000000425057132c966fb4 tcpserver: end 85139 status 256 @40000000425057132c97c38c 85139 > -ERR authorization failed^M @40000000425057132c9809dc tcpserver: status: 0/31 @40000000425057132c9e533c 85139 > [EOF] #v- The cvm-vmailmgr-local log doesn't show anything from the above session. That means, I believe, that it's never getting through, but it claims that the authorization failed, so I'm not sure what's going on. If I test on the command line with DEBUG=1 in the cvm-vmailmgr-local run script, the cvm-vmailmgr-local log is: #v+ @4000000042505999397cb684 lookup_virtuser(71): cvm_account_domain='caterva.org' @4000000042505999397e8b44 - [email protected] #v- And the output is: #v+ dave[tigger]/var/svc.d/qmail-pop3d-test> cvm-testclient cvm-local:/tmp/.cvm-vmailmgr.local test caterva.org test Authentication failed, error #100 #v- If I try with the same user, same domain, and same password through my normal qmail-pop3d I get a test message that I've sent to that account. So, I'm screwing something up, and haven't been able to see it yet. I'll work on this further tomorrow evening, but right now I must get some sleep as I have to fly tomorrow. Any further suggestions will be greeted with glee. ;] Regards, -- dave [ please don't CC me ]