Re: cvm-vmailmgr lookup problem (internal temporary error)

Mattias Wikstrom <[email protected]> Thu, 15 Sep 2005 12:09:22 +0300
Newsgroups gmane.comp.sysutils.bgware
Organization Tigerbyte
Message-ID <[email protected]>
Dale Woolridge wrote:
>     Attached is a version for cvm 0.76, with changes isolated to the
>     specific features under discussion.  In case it's not obvious,
>     cvm-vmailmgr must precede cvm-qmail with this patch.
> 
>     Notable differences:
>       - renamed DONTKNOW to CHAIN_OK and made it a flag instead of a code
>       - check for env var CVM_CHAIN_WEAK and enable the CHAIN_OK/DONTKNOW
>         behaviour only when it's set (old behaviour otherwise)
> 
>     Special note: patch not tested, heck not even compiled.

I tested it. It compiled without problems but it isn't passing the 
rcpt-info past cvm-vmailmgr:

   rcpt to: [email protected]
   553 Sorry, that recipient does not exist.
   rcpt to: [email protected]
   250 Recipient accepted.
   rcpt to: [email protected]
   553 Sorry, that recipient does not exist.

If I change the chain-order, cvm-qmail authenticates OK. Also both 
cvm-vmailmgr and cvm-qmail work OK if used individually.

Here are my CVM run-files, I've created domain sockets for all the services:

-------------------------------------------------------------

#!/bin/sh
# cvm-chain-lookup.local/run
CVM_SOCKET="/tmp/.cvm-chain-lookup.local"
export CVM_CHAIN_WEAK=""
export CVM_CHAIN0="cvm-local:/tmp/.cvm-qmail-lookup.local"
export CVM_CHAIN1="cvm-local:/tmp/.cvm-vmailmgr-lookup.local"
exec 2>&1
echo "*** Starting cvm-chain-lookup.local service..."
echo "*** >> configured for domain socket: ${CVM_SOCKET}"
exec /usr/local/bin/cvm-chain cvm-local:${CVM_SOCKET}

-------------------------------------------------------------

#!/bin/sh
# cvm-vmailmgr-lookup.local/run
CVM_SOCKET="/tmp/.cvm-vmailmgr-lookup.local"
# required for realrcptto checking
export CVM_LOOKUP_SECRET=""
exec 2>&1
echo "*** Starting cvm-vmailmgr-lookup.local service..."
echo "*** >> configured for domain socket: ${CVM_SOCKET}"
exec /usr/local/bin/cvm-vmailmgr-local ${CVM_SOCKET}

-------------------------------------------------------------

#!/bin/sh
# cvm-qmail-lookup.local/run
CVM_SOCKET="/tmp/.cvm-qmail-lookup.local"
export CVM_LOOKUP_SECRET=""
exec 2>&1
echo "*** Starting cvm-qmail-lookup.local service..."
echo "*** >> configured for domain socket: ${CVM_SOCKET}"
exec /usr/local/bin/cvm-qmail cvm-local:${CVM_SOCKET}

-------------------------------------------------------------

Thanks to everyone for the help (especially Dale)! I cannot fix this in
the source myself because I do not know C-programming.

Mattias Wikstrom