Hussein, > > Dear fernando , > > i have made the script /var/qmail/bin/mymaildirmake.sh > #!/bin/sh > mkdir -m 700 -p $1 > with permission > ls -ld /var/qmail/bin/mymaildirmake.sh > -rwxr-xr-x 1 root admins 29 Mar 23 13:14 > /var/qmail/bin/mymaildirmake.sh > > and put that line /var/qmail/bin/mymaildirmake.sh in > /var/qmail/control/dirmaker > with permission > ls -l /var/qmail/control/dirmaker > -rwxr-xr-x 1 root admins 32 Mar 23 11:46 > /var/qmail/control/dirmaker >
Until now, all is good! > while doing that command on recently created user cv > [EMAIL PROTECTED] root]# /var/qmail/bin/qmail-ldaplookup -u cv > Searching ldap for: (&(objectClass=qmailuser)(uid=cv)) > under dn: dc=fg,dc=local > Found 1 entry: > > dn: uid=cv,ou=pepole,dc=fg,dc=local > ------------------------------------------------------- > objectClass: top > objectClass: inetOrgPerson > objectClass: posixAccount > objectClass: shadowAccount > objectClass: sambaSamAccount > objectClass: qmailUser > mail: [EMAIL PROTECTED] > uid: cv > accountStatus: undefined -> active > mailHost: falcon.fg.local > homeDirectory: /var/qmail/maildirs/cv/ > aliasEmpty: using default > qmailDotMode: ldaponly > qmailUID: 11184 > qmailGID: 2110 The qmailUID and qmailGID are used to create every directory/file for the user into the mailMessageStore. So, /var/qmail/maildirs MUST have appropriate perms to user or group. > mailQuotaSize: 0 (unlimited) > mailQuotaCount: 0 (unlimited) > mailSizeMax: 0 (unlimited) > mailReplyText: undefined > > and permissions on /var/qmail/maildirs/ > ls -ld /var/qmail/maildirs/ > drwxr-xr-x 2 vmail vmail 4096 Mar 22 18:17 > /var/qmail/maildirs/ Aha! User cv do not have permissions to write/create under /var/qmail/maildirs, nor its group! Try changing permissions on /var/qmail/maildirs to 0775. > knowing that i have created these users and group before compiling qmail > vi /etc/passwd > alias:x:1009:1002::/var/qmail/alias:/bin/true > qmaild:x:1010:1002::/var/qmail:/bin/true > qmaill:x:1011:1002::/var/qmail:/bin/true > qmailp:x:1012:1002::/var/qmail:/bin/true > qmailq:x:1013:1003::/var/qmail:/bin/true > qmailr:x:1014:1003::/var/qmail:/bin/true > qmails:x:1015:1003::/var/qmail:/bin/true > vmail:x:1184:2110::/var/qmail/maildirs/:/bin/true > vi /etc/group > nofiles:x:1002: > qmail:x:1003: > vmail::2110 > Perfect! > but i have noticed that output for same user home directory in ldif file > is /home/samb-ntprof/cv > while in qmail-ldaplookup -u cv is > /var/qmail/maildirs/cv/ About qmail-ldaplookup, it is the correct behavior to show "homeDirectory: /var/qmail/maildirs/cv/", it computes homeDirectory from mailMessageStore if there is no homeDirectory or if you are pointing homeDirectory to a non-existent attribute. Also, it should be nice to "accountStatus: active" all your users... > and still mail boxes can't created autoamtically in /var/qmail/maildirs/ > knowing that i have rebooted the qmail server many times > and sent mails to these users before trying to connect using pop3 > what should i do else > > Regards > Hussein Esmat 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