Hi, Can you try something like this?
#!/bin/sh cd /var/vmail/ /bin/mkdir -m 0700 -p $1 /var/qmail/bin/maildirmake $1/Maildir 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. > > > > >not a separate script because the flag to enable > it > > is > > >included in the main qmail Makefile. Perhaps I > can > > run > > >it in debugging mode. Or, perhaps that user > > priveledge > > >in which that program is running is not set to > > >vmail:vmail, which owns the /var/vmail directory > > such > > >that it cannot create any file in it. > > > > > >Any idea? > > > > > -- > > Sameer N. Ingole > > > /*****************************************************/ > > Better to light one candle than to curse the > > darkness. > > > /*****************************************************/ > > > > > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
