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.

inbox.lock in one account

Discussion in 'General Discussion' started by casey, Oct 3, 2003.

  1. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    One of my users keeps getting a file created in his inbox called "inbox.lock". When this file is created, mail stops being delivered to his account and gets stuck in the queue. He is also unable to send or receive e-mail when this file is in there. E-mail starts working again only when I delete the inbox.lock file. But a few minutes later it comes back.

    The only thing I can think of is that the user's inbox is rather large (17MB). Is this the problem? If he downloads all his e-mail with Outlook, will that solve everything?

    cPanel.net Support Ticket Number: 25261

    WHM 8.4.0 cPanel 8.4.0-E85
     
    #1 casey, Oct 3, 2003
    Last edited: Oct 3, 2003
  2. JC

    JC Well-Known Member

    Joined:
    Nov 6, 2002
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    This normally happens on users accessing with dialup connections.
    If the connection drops during receive, his inbox.lock remains open for 5 to 10 minutes and then resets.
    Only then will he be able to receive again.
    In this situation, Outlook keeps asking for his password and although he types it in correctly, he gets nothing.
    He'll just have to wait and try again later with a better connection ;)

    cPanel.net Support Ticket Number:
     
    #2 JC, Oct 3, 2003
    Last edited: Oct 3, 2003
  3. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Normally is the key word here. He isn't accessing his e-mail with Outlook. He's accessing his e-mail with Squirrelmail. The lock appears everytime a new message comes. This is a highly active account, so I can see it happen. I delete the inbox.lock file, and as soon as a new message comes the lock is back.

    cPanel.net Support Ticket Number:
     
  4. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I have one account with this problem too - any resolution?

    cPanel.net Support Ticket Number:
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Mine appears to have gone away on its own. Due to the vagueness of my customer's e-mail, I can't really tell whether it was due to his internet connection or not.

    Most people have told me that it is due to the person getting disconnected while trying to download mail via a pop e-mail client. The only way to fix it is to delete the inbox.lock file.

    Since mine has gone away, I have not tried the following solution, but it was offered to me at forum.cpanelhosts.com

    cat inbox > inbox.new
    rm inbox
    mv inbox.new inbox

    cPanel.net Support Ticket Number:
     
  6. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I found the solution.

    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.

    cPanel.net Support Ticket Number:
     
  7. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    I am using this solution to solve the problem too.
    But I feel it is very unconfortable when I have to manuly do it in Shell for a clients get locked.
    Is there any way to improve ?

    cPanel.net Support Ticket Number:
     
  8. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    If you trust your user to read carefully, you can have him delete the file on his own with the file manager or via ftp. The file to delete is inbox.lock. Make sure that he understands that he is only to delete that file. Otherwise he may lose all his e-mails.

    cPanel.net Support Ticket Number:
     
  9. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    I found that just deleting inbox.lock did not solve the problem - anew one was created each time mail was delivered. Deleting the processes solved the problem permanently. You need to do both.

    cPanel.net Support Ticket Number:
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    What processes? I didn't even notice. For some reason, after I deleted the file a few times it stopped.

    cPanel.net Support Ticket Number:
     
  11. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Maybe you upgraded? Starting and stopping cpop and/or imap would probably get rid of the processes. Just deleting the lock did not work for me.

    cPanel.net Support Ticket Number:
     
  12. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    I restarted cppop. ;)

    cPanel.net Support Ticket Number:
     
  13. maki

    maki Registered

    Joined:
    Aug 3, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    ny
    tried /scripts/mailperm ?

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  14. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Yep. Didn't help.

    cPanel.net Support Ticket Number:
     
  15. AceWeb

    AceWeb Well-Known Member

    Joined:
    Aug 9, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    This can also happen if the inbox file is being access from more than one place at the same time (from outlook and Squirrel Mail, for example).

    Some of my client had this happen when they left their oulook on at home, and they checked their e-mail from some place using Squirrel Mail - if outlook and Squirrel will access it at the same time, this can also happen.

    To fix the issue, run: /scripts/fixpop

    you will need to know the e-mail account that has the problem and you will need to type in the password for that e-mail account.

    cPanel.net Support Ticket Number:
     
  16. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    This is happening regularly on that one account now. Easy to fix - just delete the inbox.lock and restart cppop.

    However need to STOP it from happening rather than just fixing it.

    Any ideas anyone?
     
  17. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    same problem here
     
  18. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    #18 rs-freddo, Oct 21, 2003
    Last edited: Oct 21, 2003
  19. LoganJatol

    LoganJatol Guest

     
  20. ehpmahesh

    ehpmahesh Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Well i am having some different problem. Each time the file ownership of the inbox is get changed whenever my customer is downloading the mail. Generally file ownership of the inbox is username and mail. But after donwloadming the mail it is changing to username and username. If it is happen customer is not able to send and receive the mail using OutLook. Each time i have to manually correct the file permission then it will for some time. After some time same story will repeat. If any one is having any solution on this let me know so that i can implement this. But let me know why this is happening and how to overcome with this.
     
Loading...

Share This Page