10 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildrop and maildir ...
FromSent OnAttachments
Giulio FidenteJan 15, 2007 2:17 am 
Christian AffolterJan 15, 2007 2:55 am 
Christian AffolterJan 15, 2007 6:13 am 
Tony EarnshawJan 15, 2007 6:38 am 
Giulio FidenteJan 15, 2007 8:21 am 
Tony EarnshawJan 15, 2007 8:43 am 
Devin RubiaJan 15, 2007 9:22 am 
Giulio FidenteJan 15, 2007 9:40 am 
Giulio FidenteJan 15, 2007 10:54 am 
Giulio FidenteJan 17, 2007 2:15 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:Re: [maildropl] maildrop and maildir creation: it can't, why?Actions...
From:Christian Affolter (c.af@stepping-stone.ch)
Date:Jan 15, 2007 2:55:57 am
List:net.sourceforge.lists.courier-maildrop

Hi!

I've already googled around and searched in the mailing list archive to find how to configure maildrop for maildir creation, patching apart, seems there are no solutions.

I've managed to (ab)use maildorp for maildir creation. I've specified a directory which is always accessible as the users mail home dir (I'm using the same for every user). This prevents early chdir failures so that the global maildroprc script gets executed nonetheless.

The global maildroprc script then checks for the presence of the users maildir ($DEFAULT inside the script). If the maildir doesn't exists, a bash script gets called, which creates a fresh maildir.

However with the above solution you loose the ability to process user defined maildrop scripts (located in $HOME/.mailfilter). To bypass this issue, my global maildroprc includes the users .mailfilter in the last step.

All required values for a maildir creations are present within the various maildroprc variables and especially the combination of the 'test -d' command and the $RETURNCODE variable. See: http://www.courier-mta.org/maildrop/?maildropfilter.html

But keep in mind, that maildrop wasn't designed for maildir creation and that the above solution abuses the intended purpose of the mail home dir and maildir. Anyway it works quite well for my needs.

the question is, why the maildrop should or should not create the maildir?

I think this has been discussed more than once in the past ;)

Hope this helps!

regards Chris