Wednesday, June 24, 2009

How to convert mbox to maildir for a single domain on a cpanel server?

Suppose we are performing the conversion for the user@domainname.com user.

Take the backup of “/home/username/mail/domain.com/user/” before doing this.

Run this command as the user of the mailboxes.
================================================
/usr/local/cpanel/3rdparty/mb2md/mb2md -s /home/username/mail/domain.com/user/inbox -d /home/username/mail/domain.com/user/
================================================

Source Mbox is /home/username/mail/domain.com/user/inbox

The main Maildir directory will be created if it does not exist. It has the following subdirectories:

/home/username/mail/domain.com/user/tmp/
/home/username/mail/domain.com/user/new/
/home/username/mail/domain.com/user/cur/




Usage:

mb2md -h
mb2md -m [-d destdir]
mb2md -s sourcedir [-R|-f somefolder] [-d destdir] [-r strip_extension]

For further details please view the following link.
http://www.akadia.com/services/converting_mbox_mdir.html

No comments:

Post a Comment

 Linux Interview  Linux booting process EXT4 XFS file system runlevel scan disk hba driver systool -c fc_host lspci -nn | grep -i hba single...