On Friday 30 November 2001 12:09, Tomas Hornicek wrote:
> IMHO you need to set homeDirectory for user

Yes, with homeDirectory it is working ($MAILDIR will be set), but courier 
does not like it however... :( the resulting path is the same like before

Seems to be a problem with courier-imap, not qmail-ldap or auth_imap 
itself... 

Many thanks for your help either,
Regards,
Matt

> On Fri, Nov 30, 2001 at 12:04:53PM +0100, Matthias Blaser wrote:
> > 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
> >

Reply via email to