I believe that the checkpassword program upon successful authentication
chdir()s into the user's homedir before execing qmail-pop3d.

-Chris

On Wed, 27 Jan 1999, Martin Staael wrote:

> Date: Wed, 27 Jan 1999 14:55:03 +0100
> From: Martin Staael <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Delivered-To: [EMAIL PROTECTED]
> Delivered-To: mailing list [EMAIL PROTECTED]
> Subject: Problem with qmail-pop3d - ERR unable to scan $HOME/Maildir
> 
> Hi
> 
> I'm having a problem with qmail-pop3d.
> 
> There is no problem starting qmail-pop3d via tcpserver, but when a user
> logs into POP3 it says unable to scan $HOME/Maildir. 
> 
> How do I tell qmail-pop3d where the users mail directory is?? In the
> qmail-pop3d.c file it only reads argument 1 which is "./" so I don't really
> know how qmail-pop3d would know where it is.
> 
> Is it a bug - or what am I doing wrong?
> 
> Example:
> 
> Connected to localhost.
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]>
> user martin
> +OK 
> pass xxxxxxxx
> -ERR unable to scan $HOME/Maildir
> 
> 
> My /var/qmail/users/assign  looks like this
> 
> =martin:martin:1120:0:/webdisk/mail/martin:::
> +martin-:martin:1120:0:/webdisk/mail/martin:-::
> 
> My maildirectory is in /webdisk/mail - where all mail is stored.
> 
> The rc script file looks like this:
> exec env - PATH="/var/qmail/bin:$PATH" \
> qmail-start ./ splogger qmail
> 
> And the qmail-pop3d is started in this way.
> 
> /usr/local/bin/tcpserver 0 110        /var/qmail/bin/qmail-popup qmail.xx.net \
> /bin/checkpassword /var/qmail/bin/qmail-pop3d ./ &
> 
> The martin mail directory looks like this:
> /webdisk/mail/martin > la
> total 8
> drwx------    5 martin   qmail         45 Jan 27 13:49 .
> drwxrwxrwx    3 root     qmail         24 Jan 27 11:56 ..
> drwx------    2 martin   sys         4096 Jan 27 14:07 cur
> drwx------    2 martin   sys            9 Jan 27 14:07 new
> drwx------    2 martin   sys            9 Jan 27 12:09 tmp
> 
> A note is that if I start the tcpserver like this
> /usr/local/bin/tcpserver 0 110        /var/qmail/bin/qmail-popup qmail.xx.net \
> /bin/checkpassword /var/qmail/bin/qmail-pop3d /webdisk/mail/martin &
> 
> then it works fine - but this would only work in a single user pop3 mode
> :>) *lol*
> 
> 
> Martin
> 
> --- 
>  - Origin:     Glace Bleu d'origine... :)    ([EMAIL PROTECTED])
> 
> 

Reply via email to