4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Patch to maildrop lda...
FromSent OnAttachments
Barry FlanaganNov 4, 2004 10:52 am 
Tom CarlileNov 5, 2004 9:05 am 
Barry FlanaganNov 5, 2004 9:12 am 
Joey O'DohertyNov 6, 2004 11:09 pm.patch
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:Re: [maildropl] Patch to maildrop ldap to have default homedirectoryActions...
From:Barry Flanagan (barr@flanagan.ie)
Date:Nov 5, 2004 9:12:25 am
List:net.sourceforge.lists.courier-maildrop

Tom Carlile wrote:

So this results in the homedirectory being replaced by this config parameter? I need the ability to prepend a static path to the beginning of what is returned from the ldap query.

That would be useful also. I think something like you can do with Postfix would be best. Postfox allows this:

ldapvirtual_result_filter = /mail/%s

...in the config file which allows you to do pretty much anything with the result. This would also be useful to me, as I still have to add the /mail to the path given by the maildir_attr even with my patch, but can do this via the maildroprc.

My change just gives me a default HOME, which I want to be set to /mail at first so that maildrop can then read the maildroprc, which has tests to check if the user mailbox exists, and if not to create it (needed in a virtual setup - I don't understand why someone hasn't added it yet). If maildrop is set with the user's homedir as its home it will bomb out if home doesn't exist.

So, I still want what you want, but I think being able to set a default homedirectory_attr is useful. Unfortunately my C skills were pretty much exhausted with my little copy-and-paste patch ;-(

-Barry

On Thu, 2004-11-04 at 12:46, Barry Flanagan wrote:

This is the only way I could get maildrop working with my virtual setup where user home directory stored in ldap is not the absulute filesystem path.

It allows the setting of a default_homedirectory instead of getting this from LDAP. This was maildrop has a directory to work form and can read in its maildroprc to get the rest of its setup.

*** maildrop-1.7.0.20040907/maildrop/mdldap.c Sat Jun 26 16:20:14 2004 --- maildrop/maildrop/mdldap.c Thu Nov 4 17:40:49 2004 *************** *** 131,136 ****