On Sat, Dec 04, 2010 at 04:08:34AM +0800, Bobby Reyes wrote:
> b) have tried to set maildir-path = '/var/qmail/maildirs/breyes/Maildir'
> but mails then goes to '/var/qmail/maildirs/breyes/Maildir/Maildir/new'
> (???)

It looks like qmail and courier aren't agreeing on the purpose of the LDAP
attribute.  qmail thinks it's the homedir (and appends /Maildir/), but
courier thinks it's the maildir.

> /etc/courier/authldaprc:
> 
> LDAP_HOMEDIR             mailMessageStore
> LDAP_MAILDIR            mailMessageStore

So if mailMessageStore contains /home/foo/, you've told courier that the
homedir is /home/foo/ and the maildir is /home/foo/

It's a while since I've done this, but I think you may be able to omit
LDAP_MAILDIR, in which case courier will chdir to the homedir and then
chdir to ./Maildir for the maildir

Otherwise, you need two attributes in LDAP:

homeDir                 /home/foo/
mailMessageStore        /home/foo/Maildir/

and you can point qmail at the homeDir attribute, if qmail insists on
appending /Maildir/ itself.

> /etc/imapd.config:
> MAILDIRPATH=Maildir

That's what you want it to do if LDAP_MAILDIR is missing; I can't remember
for sure whether authldap can work that way though (other auth modules can).

Personally I use exim for mail delivery, which is much more flexible to
configure, and a single attribute for /home/foo/Maildir/

Also I don't use LDAP_MAILROOT, but put the full absolute path in LDAP.

HTH,

Brian.

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to