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 to maildir conversion external cript

Discussion in 'E-mail Discussions' started by neo_user, Oct 15, 2007.

  1. neo_user

    neo_user Member

    Joined:
    Jul 18, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    hi all ,

    i have seen a perl script at this url http://batleth.sapienti-sat.org/projects/mb2md/ through which i can convert mail boxes one by one and i guess its less risk then converting all the mbox to maildir in one go and if something will go wrong it will create problem for all the accounts on the server .

    does it makes any sense ? if i use an external script will it affect cpanel's or server's working some how ?


    Regards

    Neo_User
     
  2. neo_user

    neo_user Member

    Joined:
    Jul 18, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    can someone help me please ?

    Regards

    Neo_user
     
  3. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    You say you want to convert mailboxes one by one - But please realize these things (assuming you are running Cpanel):

    1. If you switch to maildir using /scripts/convert2maildir, it will automatically commence with converting all mailboxes.

    2. If you don't switch to maildir via the cpanel scripts, then you can't convert to maildir - simple as that.

    3. You can't convert just 'some' and then expect the rest to continue to work. Once Cpanel is set to use maildir, it will not deliver mail in mbox format to some addresses and to maildir format for others.

    4. When you decide to switch to maildir, you have to be prepared to convert all of your mail at once.

    5. Realistically nothing fatal should go wrong if you convert (as long as your cpanel software and everything is up to date when you switch). The two biggest problems people have to deal with when switching to maildir are:
    a. People who use IMAP or Webmail for email access to their accounts will have to resubscribe to all of their folders, or they will only see Inbox mail
    b. Neomail will no longer exist on the system
    c. Any address books that customers had set up in Neomail will be unusable

    The longer you wait, the more customers you get on the machine, the more mail ends up being stored on your system, the more difficult it is to complete a maildir conversion - the more mail, the longer it takes. I'd encourage you to do it sooner rather than later.

    PS: You don't need to download mb2md - It's already on your system (at least it is if you have already converted to maildir) - /usr/local/cpanel/3rdparty/mb2md/mb2md

    PS2: If you have Support available from Cpanel or via your datacenter or a reseller (if you bought support through them), then you should be prepared iwth all of the information you need to call them/email them/open a support ticket with them in event that something does go wrong.

    PS3: The /scripts/convert2maildir script really does handle the conversion pretty well. You MUST be patient. Do NOT lose connection from the server when you do this. Depending on the volume of mail, it could take minutes to hours, to tens of hours to convert mail - depending on how many mailboxes and how large the mailboxes are. Patience is a virtue. Once the script completes, you may find some mailboxes that do not convert - just run the script again and it will give you the option to convert those mailboxes that didn't convert over previously. Keep converting leftover mailboxes till they are all converted.


    Mike
     
    #3 mtindor, Oct 17, 2007
    Last edited: Oct 17, 2007
  4. neo_user

    neo_user Member

    Joined:
    Jul 18, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Dear Mike,

    Thanks a ton for replying in detail. I will do the conversion tonight.

    Thanks again

    Regards

    Neo_User
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    There is a support number in the conversion script that you can call if you have any issues with the conversion.

    Also, you can lose connection once the conversion process has begun as this runs in the background. However, patience is definitely good here as it can take anywhere from 15 minutes to a day or two to fully convert a system.

    Additionally, users will be unable to check mail during this conversion period. This is to ensure that there isn't anything going on that could mess up the conversion process (such as a file being read at the moment it is supposed to be converted).
     
Loading...

Share This Page