Charles Cazabon <[EMAIL PROTECTED]> wrote:
> > I installed qmail, and it works fine.  I tried setting up the POP
> > server, and it's acting funny.  When I connect it says "this user has
> > no $HOME/Maildir", which is false, since the user most definitely has
> > a Maildir.
> 
> There's lots of reasons for it to fail; the Maildir isn't owned by the
> user, has incorrect permissions on the path leading to it, is named
> incorrectly, etc.

That's what I've seen in the mailing list archives, but doesn't seem
to be the problem here.  Like I said, when I replaced the startup
command with the full path of an actual Maildir (/home/ianb/Maildir),
it was able to change into this directory and download the mail
successfully.  When I traced the program, it was trying to look in
/root/Maildir (though it wasn't downloading root's mail).

> > I start the POP server like this:
> > 
> > tcpserver -H -R -c100 0 pop-3 /var/qmail/bin/qmail-popup \
> >         /bin/checkvpw /var/qmail/bin/qmail-pop3d './Maildir' &
> > 
> > I tried changing './Maildir' to '/home/ianb/Maildir' (the user I'm
> > connecting as), and it works!  I started playing with strace and
> > putting little bits of code into qmail-pop3d.c and checkpassword.c to
> > figure out what's going on.
> 
> This shouldn't matter.  Your checkpassword replacement is supposed to
> set up $HOME, $USER, etc properly.

Exactly, but it doesn't seem to be doing so.  Like I said,
checkpassword, checkvpw, and checklocalpwd all give the same results.
I don't know where to look next for the problem.

When I do a trace, I can't see what's going on inside these programs.
It gives a trace of qmail-popup and qmail-pop3d, but there's no
feedback from checkpassword.  I haven't used strace before now, so
I might not be using it correctly.

Thanks,
  Ian

Reply via email to