6 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildrop and LDAP
FromSent OnAttachments
Tony EarnshawFeb 7, 2004 2:02 pm 
Petri RiihikallioFeb 7, 2004 4:28 pm 
Tony EarnshawFeb 8, 2004 2:54 am 
Petri RiihikallioFeb 8, 2004 5:55 am 
Tony EarnshawFeb 8, 2004 11:36 am 
Petri RiihikallioFeb 8, 2004 1:56 pm 
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 LDAPActions...
From:Petri Riihikallio (petr@metis.fi)
Date:Feb 8, 2004 1:56:48 pm
List:net.sourceforge.lists.courier-maildrop

A user has a local login - in his home directory. His mail comes into a different (mailbox) directory.

On a single computer this is simple. With two computers we need to define some terminology. Lets call the computer with homedirs H and the one with the maildirs M.

Where is Maildrop going to run? H or M?

Maildrop is going to need write access to M (to deliver) and read access to H (to read per user config).

How would Maildrop access this remote mailbox?

By doing an suid, either to the user or a virtual user, such as vmail

You can't access remote directories on a different computer with just suid. You need a protocol. The easiest way (and supported by Maildrop) is to mount the dirs.

But at the moment, the maildrop suid is to the user, while it should be able to be set to the vmail user where this is necessary. This is basically a schizophrenic operation :) Maybe I can do that with Postfix/LDAP maps.

If you have different uid/gid for every user in LDAP, you can set uidnumber_attr and gidnumber_attr in maildropldap.config. Then Maildrop will use that when delivering mail. I have set only default_uidnumber and default_gidnumber and use the same vmail:vmail for all maildirs.

I'll go away and think again. Thanks for making me think it over :)

When you find the right question to ask, you usually know the answer as well :o)

GSM: +358 400 505 939