Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2003
    Location
    London, England
    Posts
    51

    Default inbox.lock problem

    I have a user that can't get his mail. Exim_mainlog says its because:

    failed to lock mailbox /home/user/mail/domain.com/martin/inbox (lock file)

    SO i delete the inbox.lock file, and it works...

    then about 5 minutes later, it comes back and stays there.

    Any idea how to stop this?

    Jee

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    15

    Default

    any solutions for this annoying problem?

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    hehe, search on theese forums. "millions" of people have this problem.

    it's the way maildir works. u must live with it )

    what i do on my servers:

    i run /scripts/mailperm every 5 minutes in crontab (i know, sounds stupid, but i have servers very mail-intensive)

    mailperm takes care of SOME of the problems.

    i also put this in my crontab

    */60 * * * * find /home/*/mail -iname '*.lock' -exec rm '{}' ';'

    it removes inbox.lock files every hour.
    i know inbox.lock are usefull sometimes, but i'm using this for about a week, and it seems ok.

  4. #4
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default

    I got the solution.. it worked...previosly posted by Michael(rs-fredo) thanks micheal

    The problem is caused by processes. Do a ps aux and you'll see lots of processes with the domain username, some imap, some cpop. Kill them all (kill -9 processNumber). Then delete the inbox.lock file.
    This fixes the problem.


    /scripts/fixpop //can also be done to solve


    Regards,
    David

  5. #5
    cPanelBilly
    Guest

    Default

    While these are all work arounds, the best thing to do is look in the inbox.lock file and see what process is using the inbox and see if it is still running. If it is then maybe you should check and see what it is doing, if it is not, put in a support ticket and we will see why it is not releasing the lock file.

  6. #6
    Member
    Join Date
    Aug 2005
    Posts
    35

    Default

    I am having a similar problem with a user, however I never catch the locked inbox. This user previously had the mail account popping from multiple locations simultaneously which may have initially attributed to the problem. Problem is, this user will have their inbox locked, and the message gets put into the queue, and delivers days/weeks/months later. The lock removes itself before I get to it, but it happens with relative frequency. At this point, im not sure what could be causing the inbox to lock. I understand why it does... Is their a log file that might record this ?

  7. #7
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    Simple solution to the multiple popoing for that client - use IMAP instead.
    Lloyd F Tennison

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Or, migrate to maildir (/scripts/convert2maildir) where courier-imap/pop resolves the mailbox locking issues.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. inbox.lock
    By cosmin in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-08-2007, 04:03 AM
  2. inbox.lock
    By hostill in forum New User Questions
    Replies: 2
    Last Post: 02-18-2006, 10:43 AM
  3. inbox.lock really an headache
    By david510 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-26-2005, 10:26 AM
  4. Inbox Lock - People with this problem please read!
    By [MuTe] in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 08-13-2005, 10:29 AM
  5. inbox.lock problems!!!!!!!!!!
    By rpmws in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-02-2004, 10:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube