Hussein, I also realized it is better to send a message to the newly created user, before connecting to the mailbox via IMAP/POP3.
For IMAP, the courier-imapd allways return an error and quits. I do not know for pop3. -- Bye, Fernando Maciel Souto Maior [EMAIL PROTECTED] http://www.araujo.com.br +55+31 3270-5886 LPIC/1 # 31908 > Dear all, > > when i type > > [EMAIL PROTECTED] root]# telnet localhost 110 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > +OK <[EMAIL PROTECTED]> > user oo > +OK > pass test > -ERR mailbox could not be created > Connection closed by foreign host. > > i have created this user > > dn: uid=oo,ou=pepole,dc=fg,dc=local > objectClass: top > objectClass: inetOrgPerson > objectClass: posixAccount > objectClass: shadowAccount > objectClass: sambaSamAccount > objectClass: qmailUser > cn: oo > sn: oo > uid: oo > uidNumber: 1002 > gidNumber: 553 > homeDirectory: /home/samba-ntprof/oo > loginShell: /bin/false > gecos: System User > description: System User > sambaSID: S-1-5-21-819893408-918549671-3685292493-3004 > sambaPrimaryGroupSID: S-1-5-21-819893408-918549671-3685292493-553 > displayName: System User > sambaPwdCanChange: 1079969914 > sambaPwdMustChange: 2147483647 > sambaLMPassword: DA1675D15141AB05AAD3B435B51404EE > sambaNTPassword: 3FDB05CB70B5B3269C976CFC23CE8CD0 > sambaPwdLastSet: 1079969914 > sambaAcctFlags: [U ] > userPassword: {SSHA}t4qusTpZ85ODxbVxOJqXet4jF9sKIDpr > mail: [EMAIL PROTECTED] > mailHost: falcon.fg.local > mailMessageStore: /var/qmail/maildirs/oo/ > > i have enabled > MDIRMAKE=-DAUTOMAILDIRMAKE > > HDIRMAKE=-DAUTOHOMEDIRMAKE > > in qmail-ldap.h file i have edited only this > define LDAP_HOMEDIR "noHomeDirectory" > /var/qmail/control/dirmaker oo > creats the user mailbox under root directory > ls -ld /var/qmail/control/dirmaker > -rwxr--r-- 1 vmail vmail 230 Mar 22 16:55 > vi /var/qmail/control/dirmaker > #!/bin/sh > DMLOG=/tmp/dirmaker.log > mkdir -m 700 -p $1 &>$DMLOG > /var/qmail/bin/maildirmake $1/Maildir > echo "Creating Maildir Directory" >>$DMLOG > echo "First parameter is ($1)" >>$DMLOG > echo "Second parameter is ($2)" >>$DMLOG > vi /tmp/dirmaker.log > Creating Maildir Directory > First parameter is (oo) > Second parameter is () > > what should i do to make the mailbox created in /var/qmail/maildirs/ with > enough permission for each user to access his mail box > > 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