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.

convert maildir to mbox a single domain

Discussion in 'E-mail Discussions' started by david510, Dec 10, 2006.

  1. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    I need to convert all mails on a single domain which is in maildir format to mbox. How can I do that? The server is having the mbox format and I transfered an account whose mail format is maildir. I need the mails of this account converted to mbox. The server is a cpanel server.
     
  2. tweakservers

    tweakservers Well-Known Member

    Joined:
    Mar 30, 2006
    Messages:
    379
    Likes Received:
    0
    Trophy Points:
    16
    maildir is running as a global wise option as you may need the correct exim version installed which supports maildir. In order to run maildir, you will need to run it for all domains.
     
  3. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    Thanks, I managed to write a script to individually convert this.
     
  4. 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
    Care to share it? I don't need it, but that sounds like a useful script.
     
  5. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    please share the script.. it helps us all :)
     
  6. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Below command could be also useful.

    /usr/local/cpanel/3rdparty/mb2md/mb2md -s /home/username/mail/domain.com/user/inbox -d /home/username/mail/domain.com/user/
     
  7. fcsnc

    fcsnc Well-Known Member

    Joined:
    Mar 19, 2002
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    North Carolina
    David, seriously, you could probably charge for such a script if it works dependably. If you can't share it here in the forums please PM me with a price.

    I haven't had the occasion to try this (I'm still running mbox/UW-IMAP), but I understand that if you restore a cpanel backup of an mbox account, the restore process converts the mail from mbox to maildir if the server is running maildir/Courier. However, there are no reports that I can find of having this work the other way around.

    Was chatting with someone yesterday who ran /scripts/convert2maildir and regretted it; then tried to go back to mbox with the same script (it appears to have that functionality as designed). However, as implemented, the script did a very poor job of backward conversion and left .cur and .tmp files and folders all over the place.

    If cPanel can't get it right and you have, please share!
     
Loading...

Share This Page