Dear Fernando ;
I have modified the test account according to your points
And set /var/qmail/control/maildir file to 2
But still every mail box is created in root home directory
Below the ldif for test account
version: 1
# LDIF Export for: uid=test,ou=pepole,dc=fg,dc=local
# Generated by phpLDAPadmin on March 4, 2004 3:58 pm
# Server: falcon (falcon.fg.local)
# Search Scope: base
# Total entries: 1
# Entry 1: uid=test,ou=pepole,dc=fg,dc=local
dn: uid=test,ou=pepole,dc=fg,dc=local
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: qmailUser
cn: test
sn: test
uid: test
uidNumber: 1001
gidNumber: 513
homeDirectory: /home/test
loginShell: /bin/false
gecos: System User
description: System User
sambaSID: S-1-5-21-819893408-918549671-3685292493-3002
sambaPrimaryGroupSID: S-1-5-21-819893408-918549671-3685292493-513
displayName: System User
sambaPwdMustChange: 2147483647
sambaLMPassword: 01FC5A6BE7BC6929AAD3B435B51404EE
sambaNTPassword: 0CB6948805F797BF2A82807973B89537
sambaAcctFlags: [U ]
sambaPwdCanChange: 1077783368
sambaPwdLastSet: 1077783368
userPassword: {SSHA}h+rl26umOjOKkvXfDY3IQJElKSot0KXN
mail: [EMAIL PROTECTED]
mailHost: falcon.fg.local
mailMessageStore: /var/qmail/maildirs/test/Maildir/
-----Original Message-----
From: Fernando Maior [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 3:12 PM
To: [EMAIL PROTECTED]
Subject: RE: how can i create an ldap user's mail box automatically ?
>From you LDIF entries, you have:
1) two "mail" attributes where you should have only one.
2) if you want the user to have two emails, you should
use the main email as "mail" attribute, and all the
other emails as "alternateMailAddress" attribute.
3) you are using homeDirectory and mailMessageStore
attributes. Beware that, if you use mailMessageStore,
it is there qmail will delivery all mails. The only
problem is that, if you look close the quoting below,
you are passing $1 (homeDirectory) to the script,
instead of $2 (mailMessageStore). Try changing it.
4) also, mailMessageStore MUST be a complete path,
beggining with "/", and end it with "Maildir/",
something like "/var/qmail/users/Hussein/Maildir/".
5) I believe homeDirectory is exclusively for Samba, and
mailMessageStore is exclusively for qmail, isn't it?
--
Bye,
Fernando Maciel Souto Maior
[EMAIL PROTECTED]
http://www.araujo.com.br
+55+31 3270-5886
LPIC/1 # 31908
> ------------------------------------
> ~control/dirmaker
>
> Absolute path to your program/script that creates missing homedirs
> Default: none (off)
> Example: /var/qmail/bin/create_homedir
> Note: the script is executeded after the setuid/gid, it isn't
running
> under root for security reasons.
> The command is executed with execve not system
> (so mkdir --mode=700 -p does not work!) use a shell script.
> $1 is the homedir-path and $2 is aliasempty.
> If you use $2 have a look at the first and last char to
> ensure that it is a path to the maildir and not a pipe
> or mailbox delivery. Possible very simple shell script:
>
> -cut-
> #!/bin/sh
> mkdir -m 700 -p $1
> #EOF
> -cut-
> ------------------------------------
AVISO-------------------------------------------------------------
Esta mensagem pode conter informacao confidencial ou privilegiada.
Se voce nao for o destinatario ou a pessoa autorizada a receber
esta mensagem, nao pode usar, copiar ou divulgar as informacoes
nela contidas ou tomar qualquer acao baseada nessas informacoes.
Se voce recebeu esta mensagem por engano, favor avisar o remetente
imediatamente, respondendo o e-mail e em seguida apagando-o.
Obrigado pela cooperacao.
DISCLAIMER--------------------------------------------------------
This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based
on any information herein. If you have received this message in
error, please advise the sender immediately by replying to this
e-mail and delete this message. Thank you for your cooperation.
------------------------------------------------------------------
This email was sent using SquirrelMail - http://squirrelmail.org