Matt Wade wrote:

I have been using tmda for some time and all is working well. I have just
installed tmda-cgi and having a bit of a problem. I can authenticate fine,
but it tells me that the user is not set up and would I like to install.
Checking the error output, I see that it is looking for the crypt key in the
wrong location:

Can't find key file:
/usr/local/vpopmail/domains/codewalkers.com/matt/.tmda/crypt_key

It is actually located at:

/usr/local/vpopmail/domains/codewalkers.com/matt/crypt_key

So, I manually created a .tmda directory and copied the crypt_key there. It
then let me in the application, but as expected it did not think I had any
pending mail (when I have hundreds).

My question is why is tmda-cgi looking within a .tmda directory and how can
I change that behavior? In my .tmdarc-matt file (this is a virtual user), I
have the DATADIR variable set to:

DATADIR = "/usr/local/vpopmail/domains/codewalkers.com/matt/"

tmda itself uses that with no problems, why won't tmda-cgi?

That's a very good question, and a weird problem. According to the code, tmda-cgi just calls TMDA's Pending.QueueInit which should take DATADIR into account and work perfectly. I don't know why it's not working.


As a workaround, maybe try linking a fake .tmda directory:

> cd /usr/local/vpopmail/domains/codewalkers.com/matt/
> ln -s . .tmda

My one theory is that TMDA doesn't know where the TMDARC file is and so is using the default value of ${HOME}/.tmda/ instead of your defined DATADIR.

Could you tell me what you gave to the '--config-file' option of the configure script, or what you answered to the "Would you like to override the default config file location?" question from the interactive configure script?

--
Jim Ramsay
"Me fail English?  That's unpossible!"

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to