From: Tim Legant <[EMAIL PROTECTED]>
You know, I remember (now) that you are running vmailmgr.  I had
thought it was vpopmail.  Sorry for the irrelevant questions in my
previous message.

No sweat, alot of people use vpopmail, I chose vmailmgr because it's more "qmailish", and Charles Cazabon likes it. (Cranky as he is, he does know what he's talking about) I've been pretty happy with it, it's almost transparent.


Here's my best guess as to what's going on.
When the vmailmgr-vdir.sh script uses listvdomain to find a user's
home directory (maildir), it looks at listvdomain's exit code to
decide if the user was valid.  If the exit code is not 0, the script
exits.  If it is 0, the script uses a couple of shell tricks to parse
the output of listvdomain.

What seems to be happening is that, although listvdomain produces no
usable output, it is returning 0.  When the script feeds the
non-existent output to the 'set' command, the environment gets printed
('set' does too many different things, depending on its paramters).
This output is returned to TMDA and TMDA tries to change directories
to that string, which is usually the user's home directory but in this
case is your full environment listing!

Again, I have no idea why this is happening.  I have no access to a
Mandrake Linux system to test this any further.  One idea I had about
a possible problem is a difference in the shell used to run the
script.  The vmailmgr-vdir.sh script specifies that it wants to be run
by /bin/sh.  On the BSDs (where I develop), it's the "real" /bin/sh.
In many Linux distributions, it's a link to bash.  I renamed my copy
of bash 2.05 to sh to simulate this and tried running the
vmailmgr-vdir.sh script using that specific executable.  It works
fine, so I don't think that's the problem.

So... I am going to add an additional test to the vmailmgr-vdir.sh
script and check that into CVS.  I will first mail a private copy to
you so you can see if the fix actually works for you.

In the meantime, could you try something just to verify that my
hypothesis is correct?  Could you su to the vmail user and run
vmailmgr-vdir.sh from the command line, like this:

$ /usr/local/src/vmailmgr-vdir.sh "sayu"

and tell me if you get the whole environment listed, like above?  Once
I've got the script fixed, I'll get that to you to test, also.

Thanks much for your patience,

Tim, you're a genius, you're right that the script is returning the entire environment when invoked this way, I'm not sure I would have ever figured that out, certainly not any time soon. Here is how I got the mailquotacheck script


wget http://ops.iip.net/mailquotacheck.s

I originally found it here:

http://www.pgregg.com/projects/qmail/mailquotacheck/mailquotacheck.php

You're right that my Mandrake box does use bash instead of the original sh, though this is the first time I've had trouble because of that.

Chris Berry
[EMAIL PROTECTED]
Systems Administrator
JM Associates

"Q: How many software engineers does it take to change a lightbulb ?
A: It can't be done; it's a hardware problem."

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


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

Reply via email to