Hi, I think I know what your problem is. The content of /var/qmail/bin/dirmaker shouldn't be the commands to be used on creating the maildir, but rather the script to call to do so. Can you try this out? :
1. Create a file named customdirmaker (or any file name you want) under /var/qmail/bin/ that contains the following script: #!/bin/sh cd /var/vmail/ /bin/mkdir -m 0700 -p $1 /var/qmail/bin/maildirmake $1/Maildir 2. Now modify /var/qmail/control/dirmaker so that it should only contain the line (use the filename from Step 1 if you decided to use something else): /var/qmail/bin/customdirmaker 3. Test again. Note: Please make sure that the script you wrote is executable by the user vmail. Hope this works now! :o) HyperAxe Email: [EMAIL PROTECTED] Web: http://www.hyperaxe.com -----Original Message----- From: jay alvarez [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 4:36 PM To: HyperAxe; 'Sameer N Ingole'; [email protected] Subject: RE: automaildirmake won't work, emails got stuck in queue Hi, --- HyperAxe <[EMAIL PROTECTED]> wrote: > Hi, > > Can you try something like this? > > #!/bin/sh > cd /var/vmail/ > /bin/mkdir -m 0700 -p $1 > /var/qmail/bin/maildirmake $1/Maildir > gaheris# cat /var/qmail/bin/dirmaker #!/bin/sh /bin/mkdir -m 0700 -p $1 /var/qmail/bin/maildirmake $1/Maildir galahad# mail [EMAIL PROTECTED] Subject: Testing maildirmake script this is just a test whether maildirmake will work hope this thing work...:( . EOT gaheris#tail -f /var/qmail/log/qmail/current @4000000042df5cc61650b32c new msg 356 @4000000042df5cc6165a119c info msg 356: bytes 1103 from <[EMAIL PROTECTED]> qp 1964 uid 1003 @4000000042df5cc6165c923c starting delivery 88: msg 356 to local [EMAIL PROTECTED] @4000000042df5cc6165e9dac status: local 1/10 remote 0/20 @4000000042df5cc61b8c6804 delivery 88: deferral: Temporary_error_in_automatic_homedir_creation._(#4.3.0)/ @4000000042df5cc61b8ebdac status: local 0/10 remote 0/20 It still didn't work.. Waaaaaaaaa...............:) > Best regards, > > HyperAxe > Email: [EMAIL PROTECTED] > Web: http://www.hyperaxe.com > > -----Original Message----- > From: jay alvarez [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 21, 2005 4:05 PM > To: HyperAxe; 'Sameer N Ingole'; > [email protected] > Subject: RE: automaildirmake won't work, emails got > stuck in queue > > > > --- HyperAxe <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > Are you using /var/qmail/bin/maildirmake or a > > customized script of your > > own? If you are using a custom script, can you > email > > us the content? > no, its a custom script I got from the url I have > posted in my previous mail, which has two lines: > #!/bin/sh > /bin/mkdir -m 0700 -p $1 > > it has a permission set to: > > -rwxr-xr-x 1 root qmail > > In the thread found at: > http://marc.theaimsgroup.com/?l=qmail-ldap&m=111590884712691&w=2 > > "a)if I create the homedir by hand does mail > delivery > work?" > > the answer is no. > > I'm sure I did uncommented the #DEBUG=-DDEBUG before > doing the build but where can I set the LOGLEVEL to > 255? > > I have attached here some files that might interest > you:) > > Again, thank you very much for your patience! > Sincerely, > jay > > > > > Thanks. > > > > HyperAxe > > Email: [EMAIL PROTECTED] > > Web: http://www.hyperaxe.com > > > > -----Original Message----- > > From: jay alvarez [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 21, 2005 3:25 PM > > To: Sameer N Ingole; [email protected] > > Subject: Re: automaildirmake won't work, emails > got > > stuck in queue > > > > > > > > --- Sameer N Ingole <[EMAIL PROTECTED]> > wrote: > > > > > jay alvarez wrote: > > > > > > >Hi, > > > > > > > >--- HyperAxe <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > >>Aside from the smtpd logs, do you also have > > qmail > > > >>logs. I'm not sure > > > >>about your installation but with my > installation > > > >>using daemontools my > > > >>qmail logs are under > > > >>/service/qmail/logs/main/current and smtpd > logs > > > are > > > >>under /service/qmail/logs/main/current. > > > >> > > > >>Most details of errors can actually be seen on > > > qmail > > > >>logs. > > > >> > > > >> > > > >I've already found the logfiles for qmail. It's > > in > > > >/var/qmail/log/qmail/current, the same location > > of > > > >qmail-smtpd/current log. > > > > > > > >After emptying the contents of > > > >/var/qmail/log/qmail/current, I again tried > > sending > > > >email and got these logs, which indeed tells > it's > > a > > > >homedir creation problem. > > > > > > > >@4000000042df416101e76b4c new msg 300 > > > >@4000000042df416101efc404 info msg 300: bytes > > 1070 > > > >from <[EMAIL PROTECTED]> qp 1197 > > uid > > > >1003 > > > >@4000000042df416101efd78c starting delivery 28: > > msg > > > >300 to local [EMAIL PROTECTED] > > > >@4000000042df416101efe72c status: local 1/10 > > remote > > > >0/20 > > > >@4000000042df416108fcb284 delivery 28: > deferral: > > > > > > >Temporary_error_in_automatic_homedir_creation._(#4.3.0)/ > > > >@4000000042df4161090c69f4 status: local 0/10 > > remote > > > >0/20 > > > > > > > >Do you know what qmail program is being invoke > to > > > >create that virtual home directories? I know > that > > > its > > > > > > > > > > > I think its qmail-local which creates > directories. > > > You can try this. > > > > > > su vmail -c `cat /var/qmail/control/dirmaker` > > > /var/vmail/username/Maildir > > > > > > (substitute username above with your mail user > > > yanyan??) > > > > > > See if it creates Maildir or not. > > > > > yes it did. > > > > > > > How did you create user vmail? > > > (show command you used to create user vmail.) > > > > > I'm running FreeBSD 5.4 so I didn't followed the > > instructions for adding users found at: > > > http://www.proscrutiny.com/howtos/qmail-ldap.html#creating-dirmaker_subs > > ec > > > > Anyway, here's the entry in my /etc/passwd: > > > > > vmail:$1$aFeH1H3B$GtwMRp.9TvOzGsGklizLp0:1012:1012::0:0:qmail > > virtual user:/var/vmail:/bin/sh > > > > A > > > > #`cat /var/qmail/control/ldap[g|u]id` > > gives me: > > 1012 > > > > while > > #cat /var/qmail/control/ldapmessagestore > > /var/vmail > > > > and as I've said, I have a > > /var/qmail/control/dirmaker > > that contains the absolute path of the actual > > dirmaker > > script located at /var/qmail/bin/ > > > > > > Anymore idea? > > > > Thanks again. > > > === message truncated === ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
