1 message in net.sourceforge.lists.courier-users[courier-users] Setting up the MAILDI...
FromSent OnAttachments
Simon AlmanJul 3, 2002 6:07 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Setting up the MAILDIR environmental variableActions...
From:Simon Alman (simo@tsorg.com)
Date:Jul 3, 2002 6:07:47 am
List:net.sourceforge.lists.courier-users

Hi All

I need a some help configuring the MAILDIR environmental variable, the situation is this:

I've configed courier-imap to use pam authentication over pop3 and imap, I've tested authentication over both of these and they both work, my MTA is exim which is configured to use maildir's and which has created individual maildir's in /var/spool/mail for users.

The problem I have is that when connecting to the mail server over pop or imap the client gets the error message

ERR: Maildir: No such file or directory

I have setup the following in /etc/profile to set a path to MAILDIR for bash (my OS is redhat 7.3) but it does not seem to work:

Note: I have added the line: MAILDIR="/var/spool/mail/$USER"

and added MAILDIR to export.

-------------------------------------------------start of profile--------------------------------------------------- # /etc/profile

# System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc

pathmunge () { if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi fi }

# Path manipulation if [ `id -u` = 0 ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin pathmunge /usr/exim pathmunge /usr/exim/bin pathmunge /var/spool/mail fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`" LOGNAME=$USER MAILDIR="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname` HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then INPUTRC=/etc/inputrc fi

export PATH USER LOGNAME HOSTNAME HISTSIZE INPUTRC MAILDIR

for i in /etc/profile.d/*.sh ; do if [ -r "$i" ]; then . $i fi done

unset i -----------------------------------------------end of profile------------------------------------------

reading the 'man imapd' pages I notice that it suggests the MAILDIR can be specified on the command line when launching imapd although details of syntax are not given, if anyone knows how to do this then that would provide an alternative until I can get the environmental variable to work.

Any help would be gratefully appreciated.

Thanks

Simon