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
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
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)
4. 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
[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
--THanks for helping me
-suhag.
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/