Hi Suhag,

I had been keeping an eye on this thread since a long time and moreover I
was
myself facing the same issue, that QMAIL wasnt creating maildirs
automatically. With pointers from few qmail-ldap list members, and some head
banging, I have finally solved the issue of automatic mail delivery to
user's mail directory.
I would like to share my experiences with you too.

You need to make sure that the following settings are true with your
qmail-ldap setup.

1. When initially compiling qmail-ldap, just take a look at this section of
QLDAPINSTALL file in the qmail source directory -

==============================================================
LDAP_MAILSTORE (default: "mailMessageStore")
and
LDAP_HOMEDIR (default: "homeDirectory")

 Path to the maildir/mbox on the mail system is extracted from those fields.
 If LDAP_HOMEDIR is found this field is used as $HOME, using aliasempty or
 mailMessagestore if defined as default delivery method.
 If only LDAP_MAILSTORE is defined this will be used as $HOME and aliasempty
 as default delivery method.
 If neither LDAP_MAILSTORE nor LDAP_HOMEDIR is defined, ~alias (qmails alias
 user homedir) will be used as $HOME and ALIASDEVNULL (defined in
qmail-ldap.h)
 as default delivery method. Also the delivery mode is set to ldap only and
 forward only (LDAP_DOTMODE and LDAP_MODE).
 Example: /home/jdoe/
 Note: LDAP_MAILSTORE can be written relative in a virtual users environment
       ldapmailstore will be prefixed to make the path absolute.
       For more info have a look at the QLDAPNEWS file.
       If you use "homeDirectory" in an incompatible way then redefine it in
       qldap-ldap.h to something not used, like "noHomeDirectory".
===========================================================

thus in file qmail-1.03/qmail-ldap.h , you need to set
LDAP_MAILSTORE="noHomeDirectory". This will make qmail deliver mails to a
directory other than the Home Directory, which in my case is "/home/user".

In your case, Home Directory is /var/qmail/maildirs/spd9, which I dont think
is needed. Just revert back to default home directory value - /home/spd9.

2.  Next, you will need the following files in your /var/qmail/control
directory

File
Contents
=====
============

defaultdelivery
./

Instead of './Maildir/', I tell qmail to deliver mails to the current
directory, which is /var/qmail/maildirs/<user>/

"Do Note the trailing '/' above"

Also, the 'dirmaker' script is especially required. If its not there, then
the maildir will not be created automatically.

Other control files worth checking out in my setup are as follows -

File
Contents of the file
=====
============

defaultdomain
yourdomain.com
ldapmessagestore
/var/qmail/maildirs/
dirmaker
/var/qmail/control/dirmaker1
ldapserver
localhost
ldapbasedn
dc=yourdomain,dc=com
ldapgid
whatever is vmail's GID
ldapuid
whatever is vmail's UID
me
mail.yourdomain.com

Note : I have set permissions "root : qmail" for all files that I have
created manually in /var/qmail/control. I am not too sure if I need to
change those
permissions or not, but I have changed the permissions to avoid confusion
and maintain uniformity.

Now when you send a mail to a new user, his/her maildir will automatically
get created in /var/qmail/maildirs/

I am hopeful that this solves your problem.

Cheers!

Amit



----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "Sameer N Ingole" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Monday, August 08, 2005 10:53 PM
Subject: Re: Qmail-LDAP: Maildir not create automatically


> Quoting Sameer N Ingole <[EMAIL PROTECTED]>:
>
> > [EMAIL PROTECTED] wrote:
> >
> > >Quoting Sameer N Ingole <[EMAIL PROTECTED]>:
> > >
> > >
> > >
> > >>[EMAIL PROTECTED] wrote:
> > >>
> > >>
> > >>
> > >>>Quoting Sameer N Ingole <[EMAIL PROTECTED]>:
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>>[EMAIL PROTECTED] wrote:
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>>Quoting Sameer N Ingole <[EMAIL PROTECTED]>:
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>>[EMAIL PROTECTED] wrote:
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>Quoting Sameer N Ingole <[EMAIL PROTECTED]>:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>[EMAIL PROTECTED] wrote:
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>>Quoting Scott Ryan <[EMAIL PROTECTED]>:
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>>This one time, at band camp, [EMAIL PROTECTED] wrote:
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>>/var/qmail/maildirs/
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>homeDirectory: /var/qmail/maildirs/spd9/
> > >>>>>>>>>>>mailMessageStore: /var/qmail/maildirs/spd9/
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>Here looks to be your problem. Either change all you ldap
entries
> > or
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>fix
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>your
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>>>ldapmessagestore control file.
> > >>>>>>>>>>
> > >>>>>>>>>>It is trying to create dirs in
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>/var/qmail/maildirs/var/qmail/maildirs/spd9/
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>>>Which does not exist
> > >>>>>>>>>>
> > >>>>>>>>>>fix this up and then maildirmake will work.
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>>Quoting Scott Ryan <[EMAIL PROTECTED]>:
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>>This one time, at band camp, [EMAIL PROTECTED] wrote:
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>>Hi
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>My Qmail-ldap is working .but i have to create user
directory
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>manually
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>before
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>>sending the mail to that user. If dir not created than it
show
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>the
> > >>
> > >>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>log
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>as
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>>>per
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>>below.
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> >
>>>>>>>>>>Unable_to_switch_to_/var/qmail/maildirs/spd7/:_file_does_not_exist
._
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>(#4.3.0)/
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>>>>@4000000042ee2e1231c6169c status: local 0/10 remote 0/20
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> >
>
>>>>>>>>>>>=================================================================
====
> =
> > >>>>>>>>>>>
> > >>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>>I have enabled the options in Makefile..
> > >>>>>>>>>>>>>MDIRMAKE=-DAUTOMAILDIRMAKE
> > >>>>>>>>>>>>>HDIRMAKE=-DAUTOHOMEDIRMAKE
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>OK, that should be fine
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>>also i have created the file dirmaker as per below.
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>[EMAIL PROTECTED] control]# ls -l dirmaker
> > >>>>>>>>>>>>>-rwxr-xr-x    1 root     root           25 Jul 31 11:02
> > dirmaker
> > >>>>>>>>>>>>>[EMAIL PROTECTED] control]# cat dirmaker
> > >>>>>>>>>>>>>/var/qmail/bin/dirmaker1
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>              &&&
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>[EMAIL PROTECTED] bin]# pwd
> > >>>>>>>>>>>>>/var/qmail/bin
> > >>>>>>>>>>>>>[EMAIL PROTECTED] bin]# ls -l dirmaker1
> > >>>>>>>>>>>>>-rwxr-xr-x    1 root     root           29 Jul 31 11:44
> > dirmaker1
> > >>>>>>>>>>>>>[EMAIL PROTECTED] bin]# cat dirmaker1
> > >>>>>>>>>>>>>#!/bin/sh
> > >>>>>>>>>>>>>mkdir -m 700 -p $1
> > >>>>>>>>>>>>>[EMAIL PROTECTED] bin]#
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>Why not use maildirmake that comes with qmail-ldap?
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>>Though i have created the above file..i have to create the
user
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>directory
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>>>>manually with /bin/maildirmake script ..not above..
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>my maildirs directory permission is vmail:vmail
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>In your control directory have you got ldapuid and ldapgid
set
> > to
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>the
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>above?
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>>>>So pl let me know how to created automatically directory
.....
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>I use ldapmessagestore in my control directory to obtain the
> > base
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>-
> > >>
> > >>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>ie
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>># cat ldapmessagestore
> > >>>>>>>>>>>>/var/qmail/mail/
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>(ensuring I have trailing slash)
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>then in the user's entries similar to:
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>mailMessageStore: s/c/scottryan
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>Never given me any issues.
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>>Thanks in advance
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>-suhag.
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>-- 
> > >>>>>>>>>>>>slr,
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>
> > >>>>>>>>>>-
> > >>>>>>>>>>slr,
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>Hi
> > >>>>>>>>>
> > >>>>>>>>>I have tried with /spd9/ in ldap entries ..for homeDirectory:
> > /spd9/
> > >>>>>>>>>mailMessageStore: /spd9/
> > >>>>>>>>>
> > >>>>>>>>>but still do not working
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>[I have formatted this mail for this time, next time please
maintain
> > >>>>>>>>
> > >>>>>>>>
> > >>the
> > >>
> > >>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>reply at the bottom of message.]
> > >>>>>>>>
> > >>>>>>>>Okay, let us sort it out step by step.
> > >>>>>>>>Answer these questions.
> > >>>>>>>>
> > >>>>>>>>1. Show me the output of
> > >>>>>>>> ls -lh /var/qmail/
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>drwxr-sr-x    3 alias    qmail        4.0K Jul 26 07:29 alias
> > >>>>>>>drwxr-xr-x    2 root     qmail        4.0K Jul 31 11:44 bin
> > >>>>>>>drwxr-xr-x   10 root     qmail        4.0K Jul 24 10:04 boot
> > >>>>>>>drwxr-xr-x    2 root     qmail        4.0K Aug  3 19:46 control
> > >>>>>>>drwxr-xr-x    2 root     qmail        4.0K Jul 24 10:04 doc
> > >>>>>>>-rwx------    1 root     root         7.9K May  4 19:23
inst_check
> > >>>>>>>drwxr-xr-x   10 qmaill   qmail        4.0K Jul 24 10:04 log
> > >>>>>>>drwxr-xr-x    6 vmail    vmail        4.0K Aug  3 19:52 maildirs
> > >>>>>>>drwxr-xr-x   10 root     qmail        4.0K May  4 18:57 man
> > >>>>>>>drwxr-x---   11 qmailq   qmail        4.0K May  4 18:57 queue
> > >>>>>>>-rwxr-xr-x    1 root     root          216 May  4 19:14 rc
> > >>>>>>>drwxr-xr-x    5 root     root         4.0K May  4 19:48 supervise
> > >>>>>>>drwxr-xr-x    2 root     qmail        4.0K Jul 26 07:23 users
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>Ok
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>2. Which user owns directory /var/qmail/maildirs? (check in
output of
> >
> > >>>>>>>>above command)
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>drwxr-xr-x    6 vmail    vmail        4.0K Aug  3 19:52
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>/var/qmail/maildirs/
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>/maildirs/ -- manually created users directory
> > >>>>>>>drwx------    5 vmail    vmail        4096 Jul 31 10:26 spd5
> > >>>>>>>drwx------    5 vmail    vmail        4096 Jul 31 09:59 spd6
> > >>>>>>>drwx------    5 vmail    vmail        4096 Aug  1 19:58 spd7
> > >>>>>>>drwx------    5 vmail    vmail        4096 Jul 31 12:54 spd8
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>Fine.
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>3. Show output of
> > >>>>>>>> id <username>
> > >>>>>>>>
> > >>>>>>>>where <username> is the owner of /var/qmail/maildirs.
> > >>>>>>>>[EMAIL PROTECTED] qmail]# id vmail
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>uid=11184(vmail) gid=2110(vmail) groups=2110(vmail)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>. try this and tell me what it did..
> > >>>>>>>> run this command as root
> > >>>>>>>> /var/qmail/bin/dirmaker1 "/var/qmail/maildirs/spd9"
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>Did it create dir intended directory (/var/qmail/maildirs/spd9) ?
> > >>>>>>>[EMAIL PROTECTED] maildirs]# /var/qmail/bin/dirmaker1
> > >>>>>>>
> > >>>>>>>
> > >>"/var/qmail/maildirs/spd9"
> > >>
> > >>
> > >>>>>>>[EMAIL PROTECTED] maildirs]# ls -l
> > >>>>>>>total 20
> > >>>>>>>drwx------    5 vmail    vmail        4096 Jul 31 10:26 spd5
> > >>>>>>>drwx------    5 vmail    vmail        4096 Jul 31 09:59 spd6
> > >>>>>>>drwx------    5 vmail    vmail        4096 Aug  1 19:58 spd7
> > >>>>>>>drwx------    5 vmail    vmail        4096 Jul 31 12:54 spd8
> > >>>>>>>drwx------    2 root     root         4096 Aug  3 19:56 spd9
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>Your dirmaker script works.
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>[EMAIL PROTECTED] maildirs]# cd spd9
> > >>>>>>>[EMAIL PROTECTED] spd9]# ls -l
> > >>>>>>>0
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>Once these questions are answered, we will proceed for further
> > debug.
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>One more intersating thing
> > >>>>>>>When i edited the spd9 user's entry as per below...
> > >>>>>>>
> > >>>>>>>homeDirectory: /var/qmail/maildirs
> > >>>>>>>mailMessageStore: /var/qmail/maildirs/spd9
> > >>>>>>>
> > >>>>>>>It created the file spd9 in maildirs but not created directory..
> > >>>>>>>
> > >>>>>>>But when i add slash / at the end of mailMessageStore then it
display
> > >>>>>>>
> > >>>>>>>
> > >>the
> > >>
> > >>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>error
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>like
> > >>>>>>>@4000000042f0d21825bf2b7c starting delivery 3: msg 114659 to
local
> > >>>>>>>[EMAIL PROTECTED]
> > >>>>>>>@4000000042f0d21825bf42ec status: local 1/10 remote 0/20
> > >>>>>>>@4000000042f0d21826741014 delivery 3: deferral:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>Unable_to_chdir_to_maildir._
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>>(#4.2.1)/
> > >>>>>>>@4000000042f0d21826742784 status: local 0/10 remote 0/20
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>So far its ok, now
> > >>>>>>1. Delete the directory spd9 in /var/qmail/maildirs
> > >>>>>>2. Tell me what you have in /var/qmail/control/ldapmessagestore
> > >>>>>>
> > >>>>>>(It should be /var/qmail/maildirs)
> > >>>>>>3. change mailMessageStore to spd9 so your ldap entry has this
> > >>>>>>
> > >>>>>>mailMessageStore: spd9
> > >>>>>>
> > >>>>>>
> > >>>>>>4. Make sure /var/qmail/control/ldapuid contains
> > >>>>>>
> > >>>>>>11184
> > >>>>>>
> > >>>>>>which is uid of vmail
> > >>>>>>
> > >>>>>>5. Make sure /var/qmail/control/ldapgid contains
> > >>>>>>
> > >>>>>>2110
> > >>>>>>
> > >>>>>>This is gid of vmail
> > >>>>>>
> > >>>>>>6. Make sure you have absolute path to your directoymaker script
in
> > >>>>>>/var/qmail/control/dirmaker so it contains
> > >>>>>>
> > >>>>>>/var/qmail/bin/dirmaker1
> > >>>>>>
> > >>>>>>
> > >>>>>>7. If your ldap entry does not have deliveryMode attribute, add it
so
> > it
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>has
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>>>deliveryMode: noprogram
> > >>>>>>
> > >>>>>>8. Also remove homeDirectory attribute from ldap entry
> > >>>>>>
> > >>>>>>9. Change permissions of /var/qmail/maildirs to 774
> > >>>>>>
> > >>>>>>After you do all this, verify that you don't have spd9 directory
in
> > >>>>>>/var/qmail/maildirs. Then try sending mail to [EMAIL PROTECTED]
> > >>>>>>It should create the directory spd9/Maildir automatically in
> > >>>>>>/var/qmail/maildirs.
> > >>>>>>See if it creates spd9/Maildir or not.
> > >>>>>>
> > >>>>>>Tell me what it did..
> > >>>>>>
> > >>>>>>-- 
> > >>>>>>Sameer N. Ingole
> > >>>>>>/*****************************************************/
> > >>>>>>Better to light one candle than to curse the darkness.
> > >>>>>>/*****************************************************/
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>I have tried all yr suggestion but still its not working...
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>Without editing anything after you do changes above, follow the
> > >>>>instructions on link below..
> > >>>>http://www.proscrutiny.com/howtos/errata-qmail-ldap.html#004
> > >>>>
> > >>>>This will show you what exactly it is doing..
> > >>>>Copy the output from terminal and show it here so we can see what
> > >>>>dirmaker is doing..
> > >>>>
> > >>>>Regards,
> > >>>>
> > >>>>-- 
> > >>>>Sameer N. Ingole
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>Hello
> > >>>
> > >>>pl. find below the results..from the link given by u
> > >>>
> > >>>[EMAIL PROTECTED] root]# /var/qmail/bin/qmail-ldaplookup -d 255 -u spd9
> > >>>Searching ldap for: (&(objectClass=qmailuser)(uid=spd9))
> > >>>under dn: dc=gnfcinfotower, dc=com
> > >>>Found 1 entry:
> > >>>
> > >>>dn: uid=spd9,dc=gnfcinfotower,dc=com
> > >>>-------------------------------------------------------
> > >>>objectClass: top
> > >>>objectClass: person
> > >>>objectClass: dcObject
> > >>>objectClass: qmailUser
> > >>>mail: [EMAIL PROTECTED]
> > >>>uid: spd9
> > >>>accountStatus: active
> > >>>mailHost: mail.gnfcinfotower.com
> > >>>homeDirectory: /var/qmail/maildirs/
> > >>>aliasEmpty: spd9
> > >>>qmailDotMode: ldaponly
> > >>>qmailUID: 11184
> > >>>qmailGID: 2110
> > >>>mailQuotaSize: 1000000
> > >>>mailQuotaCount: 1000
> > >>>mailSizeMax: 0 (unlimited)
> > >>>deliveryMode: noprogram
> > >>>mailReplyText: undefined
> > >>>
> > >>>[EMAIL PROTECTED] root]# /var/qmail/bin/qmail-ldaplookup -d 255 -m
> > >>>[EMAIL PROTECTED]
> > >>>Searching ldap for:
> > >>>
> > >>>
> > >>(&(objectClass=qmailuser)(|([EMAIL PROTECTED])
> > >>
> > >>
> > >>>(mailAlternateAddress
> > >>>[EMAIL PROTECTED])))
> > >>>under dn: dc=gnfcinfotower, dc=com
> > >>>Found 1 entry:
> > >>>
> > >>>dn: uid=spd9,dc=gnfcinfotower,dc=com
> > >>>-------------------------------------------------------
> > >>>objectClass: top
> > >>>objectClass: person
> > >>>objectClass: dcObject
> > >>>objectClass: qmailUser
> > >>>mail: [EMAIL PROTECTED]
> > >>>uid: spd9
> > >>>accountStatus: active
> > >>>mailHost: mail.gnfcinfotower.com
> > >>>homeDirectory: /var/qmail/maildirs/
> > >>>aliasEmpty: spd9
> > >>>qmailDotMode: ldaponly
> > >>>qmailUID: 11184
> > >>>qmailGID: 2110
> > >>>mailQuotaSize: 1000000
> > >>>mailQuotaCount: 1000
> > >>>mailSizeMax: 0 (unlimited)
> > >>>deliveryMode: noprogram
> > >>>mailReplyText: undefined
> > >>>
> > >>>
> > >>>
> > >>>
> > >>Suhag, the link I gave you does not refer to the section you followed.
> > >>It refers to the section titled
> > >>**Something is wrong with qmail-smtpd. Cannot receive/send mail**
> > >>This section is towards end of that page.
> > >>You need to follow this section. You need to run smtpd with increased
> > >>loglevel.
> > >>The section I am referring to tells you how to do it.
> > >>I can see your ldap entry in one of your previous mails.
> > >>
> > >>Regards,
> > >>
> > >>-- 
> > >>Sameer N. Ingole
> > >>
> > >>
> > >>
> > >>
> > >Hello sameer
> > >
> > >Pl find below the result
> > >
> > >[EMAIL PROTECTED] qmail-smtpd]# svc -d /service/qmail-smtpd
> > >[EMAIL PROTECTED] qmail-smtpd]# cd /var/qmail/boot/qmail-smtpd
> > >[EMAIL PROTECTED] qmail-smtpd]#  env LOGLEVEL=255 ./run
> > >tcpserver: status: 0/50
> > >
> > >Now below is generated when i tried to telnet 25 port
> > >
> > >tcpserver: status: 1/50
> > >tcpserver: pid 15246 from 203.163.129.70
> > >tcpserver: warning: dropping connection, unable to
> > >read /var/qmail/control/qmail-smtpd.cdb: file
> > >does not exist
> > >
> > This precisely is your problem. Your qmail-smtpd.cdb file is missing. So
> > smtpd is dropping connection. It is not even trying to deliver mail to
> > [EMAIL PROTECTED] Create it cdb file first.
> >
> > You have to specify relaying rules in file ~/control/qmail-smtpd.rules.
> > Then create a cdb file from it.
> > To  do this, refer to the document file here
> > http://www.proscrutiny.com/howtos/qmail-ldap.html#starting-smtpd_subsec
> > Refer to the section:
> > Starting qmail-smtpd
> >
> > Find the qmail-smtpd.rules file and edit it, so it reflects the rule set
> > you want to implement for relaying..
> > Then create cdb file by following the instructions no the link above.
> >
> > Then start smtpd again.
> >
> > Tell me if it works..
> >
> > Regards,
> >
> > -- 
> > Sameer N. Ingole
>
> But When i tried to send the mail after creating the maildirs manually..at
that
> time qmail-smtpd is working .. so i think it is not a problem of
smtps..and i
> have tried with yr suggestion (.cdb file)..but its not working.
>
> Regards,
> Suhag.
>
>
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
>



Reply via email to