4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Maildrop used with Co...
FromSent OnAttachments
Gilion GoudsmitJun 19, 2002 5:24 am 
Christian KalkhoffJun 19, 2002 5:35 am 
Gilion GoudsmitJun 20, 2002 4:52 am 
Christian KalkhoffJun 20, 2002 5:02 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 used with Courier SMTP & LDAP problemActions...
From:Gilion Goudsmit (ggou@magicminds.com)
Date:Jun 20, 2002 4:52:44 am
List:net.sourceforge.lists.courier-maildrop

no program should ever try to get such data from /etc/passwd directly. It uses the glibc which builds a transparent system to access data from various sources like NIS, LDAP...

That's what I figured! But maildrop's manpage has /etc/passwd listed as one of the used files... Not 100% true I guess..

There should be a maildropldap.config file. There you set the attributes which contain the needed data. e.G.LDAP attribute homeDir. So if you have a proper ldap installation, there should be no problem.

Okay... This is where it got interesting; I am using the rpm's generated from the tarfile, as per the instructions that come with Courier. The maildrop configuration defined in the specfile doesn't compile with the enable-maildropldap option, so I editted the specfile. It doesn't seem to pickup my altered --with-ldapconfig option though, which means the maildropldap.config file is in /etc instead of /etc/courier, but that's an esthetic thing.

This actually seems to work somewhat; if I now execute 'maildrop -V 10 -d ggou@magicminds.com' I get the following:

maildrop: Changing to /data/mail/magicminds.com/ggoudsmit maildrop: Unable to change to home directory.

So maildrop has correctly figured out where my homedirectory is, and is trying to chdir to it to read my .mailfilter...

I have no idea why maildrop can't change to my homedir though... My maildrop is root setuid, so I suppose it runs as root. It should be able to chdir anywhere right?

Any idea as to what might be causing this?

If you don't use this file or ldap in maildrop, you can use pam_ldap nss_ldap instead. They let you access ldap through PAM and NSSWITCH (glibc)

Wouldn't that mean all user-authentication goes thru LDAP? Even local logins and such? That wouldn't be what I want...

Regards, Gilion R. Goudsmit