On Sun, Apr 07, 2002 at 11:20:54PM -0400, Sam Varshavchik wrote:
> On Sun, 7 Apr 2002, Nicholas Riley wrote:
>
> > - Is it possible to get Courier-IMAP to use a different location for
> > Maildirs? My mailboxes are in /var/mail/<username>, but it seems
> > $HOME/Maildir is the default. I am short enough of space on my home
> > directory partition that I can't afford to have the mail there :) For
> > now I've used symlinks to get it to work.
>
> No, symlinking is the only way to do it.
Thanks - this is not a big deal thankfully since I have all of 3
users.
I've fixed my authentication problem. It turns out that the reason it
worked locally is that the local Mutt was trying AUTH LOGIN, which I
have disabled on all the other copies of mailers I was using. I
didn't even think that Courier-IMAP would permit plaintext password
transmission because it appeared to be disabled in the Web
configurator (the checkbox for AUTH=PLAIN wasn't present for non-SSL
configurations).
Here's what eventually worked for me:
# cd /etc/courier
# mkdir userdb
# chmod go-rwx userdb
(not necessary in my case, but make sure it's not readable)
# pw2userdb > userdb/users
Repeat for each user:
# userdbpw -hmac-md5 | userdb users/<username> set hmac-md5pw
(do NOT use -md5, it doesn't work)
Password: <enter password>
Reenter password: <reenter password>
# makeuserdb
In /etc/courier/authdaemonrc, make sure authmodulelist="authcram"; if
you set it to include the seemingly innocuous "authpam" it'll permit
plaintext login.
Also edit /etc/courier/imapd to include this line:
IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES
SORT AUTH=CRAM-MD5"
If you get a message like this when running 'makeuserdb':
Cannot store record for gary - duplicate or out of disk space.
Make sure there are no extraneous files in /etc/courier/userdb - like
editor backup files, which makeuserdb does not ignore.
And somehow I managed to break webmail authentication, but since I'll
be recompiling it to fix the GECOS/domain problems (thanks for the
patch!), I'm not too concerned.
--
=Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users