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.

IMAP: Unable to delete mail message

Discussion in 'E-mail Discussions' started by trparky, Jul 21, 2005.

  1. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    On one of our customers email inboxes, he is unable to delete a mail message. I have tested this with SquirrelMail and I have determined that is happening.

    Any ideas on how to fix this issue?
     
  2. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    4
    Trophy Points:
    18
    Try it with Neomail (IE not PHP and not imap) and see if its able to, if not then its not an imap or PHP issue and is more likley that the inbox is locked (IE multiple logins, stale locks, etc) if so then its either PHP or imap.

    once you have that inof you can go from there in troubleshooting the specific cause.
     
  3. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    Yes, NeoMail was able to delete the mail message.

    Also, this is a rather large mail file. 337 total message with the file size at 13 MB.
     
  4. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    Also, I can't mark an email message as unread either. Something is definitely not right here.
     
  5. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    I decided to upload the mail file to another one of our servers to test IMAP with it. That server is able to process the mail file just fine, it can delete mail, mark mail as read and unread as if nothing is wrong.
     
  6. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    4
    Trophy Points:
    18
    kill all the imap proceeses, someone is probably logged in elsewhere to the same account and so its locked.
     
  7. trparky

    trparky Well-Known Member

    Joined:
    Apr 23, 2003
    Messages:
    184
    Likes Received:
    1
    Trophy Points:
    0
    Ok, this is the output of what I executed on the server.

    Code:
    root@server [~/scripts]# ps -aef | grep map
    jrmarino  4841     1  0 Jun29 ?        00:00:00 imapd
    jrmarino 20187     1  0 Jul03 ?        00:00:00 imapd
    jrmarino 21459     1  0 Jul12 ?        00:00:00 imapd
    jrmarino 29407     1  0 Jul18 ?        00:01:16 imapd
    cfonte   23248 10440  0 12:12 ?        00:00:00 imapd
    chrisfon 23249 10440  0 12:12 ?        00:00:01 imapd
    jrmarino  1938 10440  0 12:34 ?        00:00:00 imapd
    root     15717 11770  0 13:22 pts/1    00:00:00 grep map
    root@server [~/scripts]# killall -9 imapd
    root@server [~/scripts]# killall -9 imapd
    imapd: no process killed
    root@server [~/scripts]# ps -aef | grep map
    root     15953 11770  0 13:22 pts/1    00:00:00 grep map
    root@server [~/scripts]# /scripts/restartsrv imap
    Waiting for inetd to restart..............finished.
    
    root     16021  0.0  0.0  2068  828 ?        S    13:22   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
    
    inetd started ok
    You were right, there were some hung IMAP processes. I killed them and restarted IMAP.

    Not only was I able to delete messages, but I was also able to mark messages as read and unread. Plus, access the mailbox faster than I was able to before.
     
  8. Blackcat

    Blackcat Member

    Joined:
    Sep 13, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Solution confirmed. Kill all Imapd and restart it. :)
     
  9. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Thank you for note. Also, is it happened for IMAP emal only?
     
Loading...

Share This Page