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