4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Autocreate Home-Dir -...
FromSent OnAttachments
Thomas KoflerSep 20, 2007 2:31 am 
Tony EarnshawSep 20, 2007 4:02 am 
Thomas KoflerSep 20, 2007 4:16 am 
Ed WOct 3, 2007 2:41 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] Autocreate Home-Dir - just 1 Bit missingActions...
From:Ed W (lis@wildgooses.com)
Date:Oct 3, 2007 2:41:48 am
List:net.sourceforge.lists.courier-maildrop

Thomas Kofler wrote:

Hi Tony,

thanks a lot for the definitive conclusion.

Although a workaround that I use is to set the home directory to be a base dir one up from the real home directory. This has a maildrop script in it with some default filtering and also a check to create the real home dir. The last line of this script checks if there is an override script in the real users home directory and if there is then it immediately starts to execute that.

So basically you have a case of a fallback global filter which creates the maildir, etc. Then this drops through to the users real maildrop script (if found)

Remember that you can return both a homedir for a user and a seperate maildir location. Also you can change the working dir in the global script

All of the above assumes no permission problems anywhere, eg all users are virtual under the same uid/gid

Good luck