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.

Mbox errors with webmail

Discussion in 'E-mail Discussions' started by ryan.overton, Aug 23, 2006.

  1. ryan.overton

    ryan.overton Active Member

    Joined:
    Mar 3, 2006
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    About 2-3 times a week, I get a user who gets this error, or some variation of it.

    Code:
     
    
    ERROR: Could not complete request.
    
    Query: COPY 176 "INBOX.Trash"
    
    Reason Given: UID COPY failed: Can't append - not in valid mailbox format:
    

    what causes this?
     
  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
    Probably a script failure or an invalid email, somehow. You'll either have to repair the problem or empty out the file. This is another good reason to migrate over to maildir as it does away with this type of issue completely.
     
  3. ryan.overton

    ryan.overton Active Member

    Joined:
    Mar 3, 2006
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    how does one do this?? :)

     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Run:

    /scripts/convert2maildir

    This will give you options to first backup existing mailboxes and then to perform the conversion process. Note that Neomail is removed, as it's no longer supports, and users of squirrelmail will have to signup to their imap folders again afterwards.
     
  5. ryan.overton

    ryan.overton Active Member

    Joined:
    Mar 3, 2006
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    is there a way to convert just a single person for testing purposes?

     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    No, it's all or nothing.
     
  7. lngtanseco

    lngtanseco Well-Known Member

    Joined:
    Jun 9, 2006
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Yes, I've found one. Here's how I did it.

    1. SSH as root
    2. Execute:
    /usr/local/cpanel/3rdparty/mb2md/mb2md -s /home/username/dir/to/inbox -d /home/username/dir/to/

    I've tested this method with a server that has maildir installed, created a a test email address, copied inbox file (mbox format) into /home/username/dir/to/inbox then run #2 above. Then it created all email in /home/username/dir/to/cur.

    Note: change /username/dir/to/ to your actual path.

    Hope this helps.
     
Loading...

Share This Page