IMHO you need to set homeDirectory for user

On Fri, Nov 30, 2001 at 12:04:53PM +0100, Matthias Blaser wrote:
> Hi,
> 
> On Friday 30 November 2001 11:07, Tomas Hornicek wrote:
> > On Fri, Nov 30, 2001 at 10:09:05AM +0100, Matthias Blaser wrote:
> > >
> > > in the rc-file, qmail is started by: qmail-start ./Maildir/
> > >
> > > the imapd startup:
> > > exec_prefix=/usr/local/courier-imap
> > >
> > >   exec /usr/local/bin/tcpserver -c 25 -l 0 -v -R -x /etc/tcp.imap.cdb 0
> > > imap \ ${exec_prefix}/sbin/imaplogin \
> > >   /var/qmail/bin/auth_imap \
> > >   ${exec_prefix}/bin/imapd Maildir/ 2>&1
> >
> > Try to use $MAILDIR instead of Maildir/
> 
> This doesn't work either :(
> 
> The log of auth_imap tells (when using Maildir/) following:
> 
> ldap_get_userinfo: mailMessageStore & homeDirectory:
> homeDirectory=undefined
> mailMessageStore=adfinis.ch/michael.moser (from server)
>  using /data/mail as prefix
> homeDirectory=(null pointer) & 
> mailMessageStore=/data/mail/adfinis.ch/michael.moser
> ldap_get_extrainfo: userPassword:  {crypt}---snipped---
> check_ldap: password compare was successful
> auth_success: login=michael.moser, uid=510, gid=510, 
> home=/data/mail/adfinis.ch/michael.moser, maildir=, 
> aliasempty=Maildir/,hdm=/var/qmail/bin/create_homedir
> auth_success: setgid succeeded (510)
> auth_success: setuid succeeded (510)
> auth_success: environment successfully set: USER=michael.moser, 
> HOME=/data/mail/adfinis.ch/michael.moser, MAILDIR=unset using aliasempty
> INFO: LOGIN, user=michael.moser, ip=[192.168.42.150]
> 
> the MAILDIR environment seems not to be set, and aliasempty is _only_ set 
> when I use a static value (like 'imapd Maildir/') to start imapd... 
> 
> with 'imapd $EMPTYVAR':
> 
> auth_success: login=michael.moser, uid=510, gid=510, 
> home=/data/mail/adfinis.ch/michael.moser, maildir=, aliasempty=(null 
> pointer), hdm=/var/qmail/bin/create_homedir
> 
> Regards,
> Maett
> 
> -- 
> Matthias Blaser [phone: +41 (0) 31 381 70 48, mobile: +41 (0) 79 501 36 53]
> adfinis GmbH, Haslerstrasse 21, CH-3008 Bern (Switzerland)
> email: [EMAIL PROTECTED]   web: http://www.adfinis.com

-- 
------------------------------------------------ 
Sure, I'm paranoid! But am I paranoid enough? ;)
Tomas Hornicek  
Operation & Maintenance Administration  
Globtel a.s., member of the Orange Group
[EMAIL PROTECTED]

- - - - - BEGIN GEEK CODE BLOCK - - - - -
Version: 3.12
http://www.geekcode.com
GCS/IT d- s+:+ a-- C++ UL++++$B++++S++++$ P- L+++ 
E--- W+++ N++ !o K- w O M- V- PS !PE Y PGP+++ !t 
!5 X !R tv-- b+ DI D+ G e h* r- y+
- - - - - END GEEK CODE BLOCK - - - - -

Attachment: msg01883/pgp00000.pgp
Description: PGP signature

Reply via email to