The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

failed to lock mailbox?? Please help me

Discussion in 'E-mail Discussions' started by hostingturk, Jul 23, 2004.

  1. hostingturk

    hostingturk Registered

    Joined:
    Jun 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    TR
    2004-07-22 13:50:15 1Bnb8z-0001wU-1w == boran@zero.com R=virtual_user T=virtual_userdelivery defer (-9): failed to lock mailbox /home/zero/mail/zero.com/boran/inbox (lock file)

    /sicripts/mailperm

    rm -fv /home/zero/mail/zero.com/boran/inbox.lock

    after five minutes

    ls -al
    .
    ..
    inbox
    inbox.lock
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    What you should do is look inside that file (inbox.lock) which will contain a PID. That PID is the cppop process that is (was) looking after that login. You then need to see if it is running:

    ps axf | grep PID

    where PID is the number in the lock file. If there's no cppop process running with that PID, then it's dead and you can delete the inbox.lock file safely.

    If the cppop process for the PID is still running, then you have a choice:

    1. Leave it alone and wait for a timeout (usually 5 minutes)
    2. Kill the PID and then delete the inbox.lock
     
Loading...

Share This Page