Here's an excerpt from an earlier post I made to this list.  It may help.
There's (what I'd consider a bug) in vpopmail.c  Ken is 'lower-casing' the
path /home/vpopmail/domains/foo.com and then doing a chdir to that result.
I had upper case in my path to vpopmail so it broke when running.  I've
patched the code to NOT lower-case the dir path...  I'm submitting it to Ken
now..  here's the prior message.

Chris Bunnell


..
(2)  This was the trickiest one to find.  I was getting a "Error: unable to
chdir to vpopmail/domains/domain "  error.  This proved impossible to
troubleshoot until Sean taught me about truss.  After using truss and
viewing the output, I found that the chdir command was being issued as chdir
/raid/vpopmail  NOTE THE LOWERCASE!  I use /RAID/vpopmail.  That's what's in
my home dir for the vpopmail user in /etc/passwd.  Something was "lowering"
the path!  I looked into the source and found a function being called inside
vpopmail.c called "lowerit(dir)"  I have commented that part out and
commented the source code.  Now the vadddomain function gets called, does
NOT lowercase the path, chdir's correctly, and everything works!!!   I'm
quite proud of figuring this out.  I'm pretty much a newbie to this stuff,
so getting it to work was a definite accomplishment.  Especially after
trying to hire Inter7 to build it and them blaming my "box" for the problem.
When in fact, my box wasn't the trouble at all!  A combo of my vpopmail home
dir having UPPERCASE in it and some kinda weird code (sorry Ken, I love
you're programming, and I'll NEVER be able to match you, but I just don't
understand why you did what you did there...) broke the thing.
...


----- Original Message -----
From: "Jonathan Edwards" <[EMAIL PROTECTED]>
To: "Bill Shupp" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 3:03 PM
Subject: Re: unable to 'adddomain'


> tried that already, but no luck. I tried running just ./configure with no
> extra options and I get the same message.
>
> It seems strange that the message says Unable to chdir to
> vpopmail/domains/domain directory  Why is it trying to chdir to
> /vpopmail/domains/domain???
>
>
> ----- Original Message -----
> From: "Bill Shupp" <[EMAIL PROTECTED]>
> To: "Jonathan Edwards" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 2:38 PM
> Subject: Re: unable to 'adddomain'
>
>
> > Quoting Jonathan Edwards <[EMAIL PROTECTED]>:
> >
> > > This is the line I used to configure
> > >
> > > ./configure --enable-roaming-users=y
> > > --enable-vpopuser=vpopmail --enable-ip-
> > > alias-domains=y
> >
> > This should be ok.  But try removing the "--enable-
> > vpopmail=vpopmail" part.  vpopmail is the default user.  See if
> > this helps.
> >
> > Cheers,
> >
> > Bill
> >
>
>

Reply via email to