[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Pleez help with courier-POP !!!

On Fri, 2001-12-21 at 17:14, Martin Puaschitz wrote:
> ----- Original Message -----
> From: "Marc Britten" <yugami@monochromatic.net>
> To: "Debian-User ML" <debian-user@lists.debian.org>
> Sent: Friday, December 21, 2001 11:53 PM
> Subject: Re: Pleez help with courier-POP !!!
> >you maildir is ~/Maildir if it already exists then it is created and you
> >have no problems, you need to make one for each user
> äähhmm..."you have no problems"....i have some:
> puaschitz:~# ps ax | grep pop
> 2857 ?        S      0:00
> /usr/sbin/couriertcpd -pid=/var/run/courier/pop3d.pid -stderrlogger=/usr/sbi
> n/courierlogger -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup -addres
> s=0 110 /usr/lib/courier/courier/courierpop3login
> /usr/lib/courier/authlib/authdaemon /usr/lib/courier/courier/courierpop3d
> /Maildir
>  2860 ?        S      0:00 /usr/sbin/courierlogger courierpop3login
>  2862 pts/0    S      0:00 grep pop
> puaschitz:~#
> puaschitz:~#
> puaschitz:~#
> puaschitz:~# telnet localhost 110
> Trying
> Connected to localhost.
> Escape character is '^]'.
> +OK Hello there.
> USER martin
> +OK Password required.
> PASS ****
> Connection closed by foreign host.
> see? Martin

What I did to get this working was:

Make a /var/spool/maildirs

then run makemaildir for each user you want to have access ie for me it
was hmike, make sure you are the actual user when you make the folder
for less permission headaches.

Symlink in the users home directory Maildir to

Make sure you edit your script back to use Maildir instead of ".".  If
you use . it's looking for the maildir to exist in the users home
directory which it probably doesn't.

I'm annoyed by courier's handling of opening the maildir, I've looked at
how it's invoked in the /etc/init.d/courier-imap script for example and
it looks pretty convoluted.

The init.d script runs:

/usr/bin/env - /bin/sh -c " . /etc/courier/imapd ; \
                `sed -n '/^#/d;/=/p' </etc/courier/imapd | \
                        sed 's/=.*//;s/^/export /;s/$/;/'`
                $TCPD -address=$ADDRESS \
                        -stderrlogger=${prefix}/sbin/courierlogger \
                        -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
                        -pid=$PIDFILE $TCPDOPTS \
                        $PORT ${prefix}/lib/courier/courier/imaplogin
                                /usr/bin/imapd Maildir"

>From the man page:

	The  last  daisy-chained  command  is  imapd, which is the
       actual IMAP server, which is started  from  the  logged-in
       account's  home  directory.  The sole argument to imapd is
       the pathname to the default IMAP mailbox, which is usually
       Some  authentication  modules  are capable of specifying a
       different filename, by  setting  the  MAILDIR  environment

Right after "which is usually" it seems like something is missing to
me.  Anyways.  Though I'm using imap I'm pretty sure it's the same basic


Reply to: