On Wed, Aug 09, 2006 at 08:58:10AM -0400, Roberto C. Sanchez wrote:
> > As you can see, it's looking for 'Maildir' not '.Maildir'
> > 
> Yes, that did not make sense to me as I have changed the default
> settings.
> 
> > > I have also set MAILDIRPATH to .Maildir in /etc/courier/{imapd,pop3d}
> > > and the ssl variants.  I am somewhat baffled by this.  Any pointers
> > > would be appreciated.
> > 
> > Hmm. Check your startup scripts. They should substitute the value of
> > $MAILDIRPATH into the command line. See if this is happening (by inspection,
> > and/or putting 'set -x' at the top of the script)
> > 
> # grep -i maildir /etc/init.d/*                             
> /etc/init.d/courier-imap:if [ -z "$MAILDIR" ]; then
> /etc/init.d/courier-imap:       MAILDIR=Maildir
> /etc/init.d/courier-imap:                               ${bindir}/imapd
> $MAILDIR"
> /etc/init.d/courier-imap-ssl:if [ -z "$MAILDIR" ]; then
> /etc/init.d/courier-imap-ssl:   MAILDIR=Maildir
> /etc/init.d/courier-imap-ssl:                           ${bindir}/imapd
> $MAILDIR"

OK, then complain to whoever wrote those scripts.

The original imapd.rc which comes with the courier-imap source tarball is
attached (actually, this is imapd.rc on my system which is in turn was
autoconf'd from imapd.rc.in)

You can see it uses MAILDIRPATH, as the config file says. The script you
have uses MAILDIR.

I guess you could try setting MAILDIR in the imapd config file. However,
without seeing the full script, I can't say whether this will work or not.

> It bears mention that the init scripts are completely unmodified from
> the way they were installed by the Debian packages.

Then Debian has chosen to write and use their own scripts. Talk to the
packager about this.

Regards,

Brian.
#! /usr/local/bin/bash
# $Id: imapd.rc.in,v 1.31 2005/07/02 01:13:56 mrsam Exp $
#
# Copyright 1998 - 2005 Double Precision, Inc.
# See COPYING for distribution information.


prefix=/u/home/brian/inst
exec_prefix=/u/home/brian/inst
bindir=${exec_prefix}/bin
libexecdir=/u/home/brian/inst/libexec

if test ! -f ${prefix}/etc/imapd
then
        echo "${prefix}/etc/imapd does not exist, forgot make 
install-configure?"
        exit 1
fi

if test ! -f ${prefix}/etc/imapd-ssl
then
        echo "${prefix}/etc/imapd-ssl does not exist, forgot make 
install-configure?"
        exit 1
fi

TLS_CACHEFILE=""
. ${prefix}/etc/imapd-ssl
. ${prefix}/etc/imapd

case $1 in
start)
        if test "$TLS_CACHEFILE" != ""
        then
                rm -f $TLS_CACHEFILE
        fi

        umask $IMAP_UMASK
        ulimit -v $IMAP_ULIMITD
        /usr/bin/env -i /usr/local/bin/bash -c " set -a ;
                        prefix=/u/home/brian/inst ;
                        exec_prefix=/u/home/brian/inst ;
                        bindir=${exec_prefix}/bin ;
                        libexecdir=/u/home/brian/inst/libexec ;
                                . ${prefix}/etc/imapd ; \
                                . ${prefix}/etc/imapd-ssl ; \
                IMAP_STARTTLS=$IMAPDSTARTTLS ; \
                PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
                TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
                /u/home/brian/inst/sbin/courierlogger -pid=$PIDFILE -start 
$LOGGEROPTS \
                /u/home/brian/inst/libexec/couriertcpd -address=$ADDRESS \
                        -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
                        $TCPDOPTS \
                        $PORT ${exec_prefix}/sbin/imaplogin 
${exec_prefix}/bin/imapd ${MAILDIRPATH}"
        ;;
stop)
        /u/home/brian/inst/sbin/courierlogger -pid=$PIDFILE -stop
        ;;
esac
exit 0
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to