life with qmail-ldap says:
.4. Configuration
Now that you have the schema loaded, a little system configuration is needed. I am going to discuss virtual user accounts, meaning that there are no home directories or /etc/passwd accounts for users on the mail server. After all, this is a mail server and not a user playground.
This involves setting a few control files:
- edit /etc/passwd and add: vmail:x:11184:2110::/var/qmail/maildirs/:/bin/true
- edit /etc/group and add: vmail::2110
*notice the trailoring / after maildirs for the home directory: /var/qmail/maildirs/
Ok, now another article i have found to be helpful on installing qmail-ldap is :
http://www.mrzesty.net/index.html?frame=http://braindump.MrZesty.net/qmail-ldap.html
This article,and another i have found, shows:
The idea here is that all email will be handled through virtual accounts, not /etc/passwd accounts. Create those now:
- mkdir -p /var/qmail
- Add a group vmail
- Add a user vmail, home directory is /var/qmail/maildirs,
and shell is /bin/true
/usr/sbin/groupadd -g 200 vmail /usr/sbin/useradd -u 200 -g vmail -d /var/qmail/maildirs -m -k /dev/null -s /bin/true -c "qmail vmail user" vmail
* notice there is no trailoring / after maildirs above for the home directory
-d /var/qmail/maildirsI thought i remembered reading that maildirs had to have the trailoring /....?
I will be creating these accounts on openbsd:
**create accounts for "Virtual User"
mkdir /var/qmail/maildirs
groupadd -g 802 vmail
*useradd -g vmail -s /bin/true -d /var/qmail/maildirs/ -u 817
or
useradd -g vmail -s /bin/true -d /var/qmail/maildirs -u 817
Thanks claudio for you'r time.
Claudio Jeker wrote:
On Thu, Mar 06, 2003 at 11:33:15PM -0600, BsD JuNkiE wrote:When creating the home directory for vmail is it: /var/qmail/maildirs *without the trailoring slash or /var/qmail/maildirs/ *with the trailoring slash I am comparing two different install guides that differ on this.Please be more specific and clear about where you whant to set/create this homedir. a) if you have troubles creating directories read mkdir(1). On my system it does not matter if there is a / or not at the end. b) homedirs of real users are specified in passwd(5) where it does not mather if it has a / at the end. c) the ending of the homeDirectory attribute in the ldap db does not matter. The same applies to a single mailMessageStore attribute. But if you also specify both attributes than the ending of mailMessageStore does matter (/ for Maildir else mbox). d) if you are asking about the format of ~control/ldapmessagestore I can ensure you that it does not matter if there is a / at the end or not.
