33 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Avoiding '/usr/bin/ma...
FromSent OnAttachments
Turbo FredrikssonJan 15, 2007 5:24 am 
Sam VarshavchikJan 15, 2007 7:12 am 
Turbo FredrikssonJan 15, 2007 7:41 am 
Devin RubiaJan 15, 2007 7:56 am 
Tony EarnshawJan 15, 2007 8:37 am 
Turbo FredrikssonJan 15, 2007 9:03 am 
Devin RubiaJan 15, 2007 10:01 am 
moussJan 15, 2007 2:45 pm 
Turbo FredrikssonJan 15, 2007 10:54 pm 
Turbo FredrikssonJan 15, 2007 10:57 pm 
Devin RubiaJan 16, 2007 6:54 am 
moussJan 16, 2007 4:20 pm 
Turbo FredrikssonJan 17, 2007 1:34 am 
Devin RubiaJan 17, 2007 7:09 am 
Devin RubiaJan 17, 2007 7:35 am 
Jay LeeJan 17, 2007 7:50 am 
Turbo FredrikssonJan 18, 2007 12:22 am 
Turbo FredrikssonJan 18, 2007 12:47 am 
Devin RubiaJan 18, 2007 7:24 am 
Devin RubiaJan 18, 2007 7:46 am 
Turbo FredrikssonJan 20, 2007 1:29 am 
Turbo FredrikssonJan 20, 2007 1:32 am 
moussJan 21, 2007 3:06 pm 
moussJan 21, 2007 3:14 pm 
Devin RubiaJan 22, 2007 6:40 am 
Devin RubiaJan 22, 2007 6:51 am 
Turbo FredrikssonJan 22, 2007 10:38 am 
moussJan 22, 2007 2:22 pm 
Turbo FredrikssonJan 23, 2007 3:59 am 
Turbo FredrikssonJan 23, 2007 4:01 am 
Turbo FredrikssonJan 23, 2007 4:03 am 
Devin RubiaJan 23, 2007 10:04 am 
moussJan 27, 2007 11:58 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] Avoiding '/usr/bin/maildrop: Unable to change to home directory'Actions...
From:Devin Rubia (dev@thezone.net)
Date:Jan 16, 2007 6:54:49 am
List:net.sourceforge.lists.courier-maildrop

On Tue, Jan 16, 2007 at 07:57:47AM +0100, Turbo Fredriksson wrote:

Quoting mouss <mlis@free.fr>:

Turbo Fredriksson wrote:

Devin> Simple solution: set $HOME to /var/mail/<domain>/<user>/

Didn't/don't work because maildrop does the cd BEFORE anything else/it reads system maildroprc.

# grep MYSQL_HOME_FIELD /usr/pkg/etc/authlib/authmysqlrc MYSQL_HOME_FIELD '/var/mail'

works with other backends as well.

here, maildroprc is responsible of loading per user config files.

I've had this al along:

----- s n i p ----- root@aurora# cd /etc/courier/ root@aurora# grep -i home * authldaprc:##NAME: LDAP_HOMEDIR:0 authldaprc:# The HOMEDIR attribute MUST exist, and we MUST be able to chdir to
it authldaprc:LDAP_HOMEDIR mailMessageStore authldaprc:# If homeDirectory is not an absolute path, define the root of the ----- s n i p -----

It STILL does a cd to $HOME (i.e. homeDirectory). If that's because libnss-ldap I'm not sure, but still...

Yes. $HOME should always be expected to exist for a number of good reasons.

Now, seeing as you have this piece of goodness:

authldaprc:LDAP_HOMEDIR mailMessageStore

you should be golden. However, is you are doing something nasty like having your Maildirs being created in your mail filters, then you get what you deserve. See my discussion in the recent thread: "maildrop and maildir creation: it can't, why?"