[vchkpw] qmail + vpopmail - broken deliveries to a single domain

2004-05-25 Thread Christopher Grello

Hello all,

  I have a really odd problem. Let me first say that this does not appear
to be a permissions problem, though it would at first glance.

  The problem domain we'll call example.edu. When you send an email to any
of the addresses @example.edu, it will be deferred with the following
message in the logs:

  delivery 25: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/

  As I mentioned, at first glance, you would check permissions. All that
appears to be well though. Here's what /var/qmail/users/assign looks like:

  +example.edu-:example.edu:89:89:/var/vpopmail/domains/example.edu:-::
  +test.com-:test.com:89:89:/var/vpopmail/domains/test.com:-::
  .

  Here's the directory structure for /var/vpopmail/domains/exmaple.edu/...
(btw, vpopmail and vchkpw are uid 89):

  drwxr-xr-x  23  rootwheel512 May 25 10:45 /var/
  drwxr-xr-x  9   vpopmail  vchkpw   512 May 25 11:16 /var/vpopmail/
  drwx--  4   vpopmail  vchkpw   512 May 25 11:02 /var/vpopmail/domains/
  drwx--  148 vpopmail  vchkpw  4608 May 25 11:29 
/var/vpopmail/domains/example.edu/
  drwx--  3   vpopmail  vchkpw   512 Jan 31  2002 
/var/vpopmail/domains/example.edu/tmoore/
  drwx--  25  vpopmail  vchkpw  1024 May 25 04:37 
/var/vpopmail/domains/example.edu/tmoore/Maildir/
  drwx--  2   vpopmail  vchkpw   512 May 24 13:02 
/var/vpopmail/domains/example.edu/tmoore/Maildir/new/

  So, permissions look fine. I added the test.com to do some testing and
it's working just fine with the same permissions and everything. I thought
that perhaps I hit some sort of bug or limit with the number of users you
can have in a single domain as example.edu has 3073, but I added 3500
users to test.com and all is well. The
/var/vpopmail/domains/example.edu/vpasswd file looks OK too.

  I'm at a loss. Any help would be greatly appreciated. I'm guessing my
last-resort plan will be to backup /var/vpopmail/domains/example.edu/,
re-setup the domain and then recreate all the email accounts, copy back
emails...big headache. :)

Best wishes,

- Chris


  This email was created with 100% recycled electrons.



Re: [vchkpw] qmail + vpopmail - broken deliveries to a single domain

2004-05-25 Thread Dheeraj MS
   delivery 25: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/

Even i keep getting this and till now, if i grep on my /var/log/qmail dir.,
i get...

[EMAIL PROTECTED] qmail]# grep Unable_to_chdir_to_maildir * -c
@400040a78dbc24c33f4c.s:253
@400040a8751f27f2c8a4.s:161
@400040a9ad961158643c.s:131
@400040ab53f334c0fb64.s:177
@400040ac79ea2b5f050c.s:143
@400040adf7302f23aa44.s:43
@400040afa325159f9f24.s:92
current:0
lock:0
pop3d:0
smtpd:0
state:0

-- These many amount of deferral lines!!

and  /var/log/qmail
-rw-r-1 qmaill   nofiles 98051 May 16 21:20
@400040a78dbc24c33f4c.s
-rw-r-1 qmaill   nofiles 98132 May 17 13:47
@400040a8751f27f2c8a4.s
-rw-r-1 qmaill   nofiles 98021 May 18 12:00
@400040a9ad961158643c.s
-rw-r-1 qmaill   nofiles 98000 May 19 18:02
@400040ab53f334c0fb64.s
-rw-r-1 qmaill   nofiles 98051 May 20 14:56
@400040ac79ea2b5f050c.s
-rw-r-1 qmaill   nofiles 98093 May 21 18:03
@400040adf7302f23aa44.s
-rw-r-1 qmaill   nofiles 98045 May 23 00:29
@400040afa325159f9f24.s
-rw-r-1 qmaill   nofiles 95557 May 25 23:44 current

Note that, 'current' file has none of those deferred lines. So from last two
days its gone? Confusing.

I have just my domain running on qmail and mails keep moving in and out
without any problem. At first i got bugged but later kept quiet thinking
this is a kind of issue related with Maildir or maildir.

To be frank, i'm still not able to trace the problem i'm facing because of
this. By its meaning, 'deferred' means delayed, unable to chdir_to_maildir,
maybe because the mail in my box does'nt reach directly to the user inbox,
i.e., mail is handled by qmail-scanner, Clam AV and SpamAssassin and then to
inbox.

Thought of all these and closed the issue by myself. If anyone educates me
and Christopher more on this, we'll be very much thankful to them.
:)

Dheeraj.