Hi Roland,

On Thu, 13 Feb 2003 19:41:34 +0100
"Roland Schmid" <[EMAIL PROTECTED]> wrote:

>> Execute as root (on a command line)
>> qmail-popup `hostname -f` /home/vpopmail/bin/vchkpw \
>> /bin/sh -c "echo \$HOME/Maildir"
>> "pretend" you're a user logging in
>> (means: type 'user <username><enter>pass <password><enter>)
>> and watch the output. Should be a directory.
> yes, the output is a directory /root/Maildir
> but the path to the Maildir is
> /home/vpopmail/domains/mydomain.com/user/Maildir/

So either you did something wrong with compiling vpopmail or you didn't
execute the command line I've given.
Please, do yourself a favour and _copy / paste_ it, Don't try to retype
it. The backticks are important, as well as the backslash. Your output

- either you've done something wrong when executing the command line and
  $HOME was interpreted by the shell before qmail-popup was called
- or there's something _really_ wrong with your vchkpw as it sets $HOME
  to home of root

If you're unsure about having copied the command line correctly save the
following code into /tmp/foobar


echo "$HOME/Maildir"

do 'chmod 755 /tmp/foobar' and run

 #>qmail-popup `hostname -f` /home/vpopmail/bin/vchkpw /tmp/foobar

instead of the one given first.
This will _in any case_ prevent $HOME from being evaluated to early.

Reply via email to