How to import postfix emails to the jdmail System

Source: Internet
Author: User
Tags qmail
How to import a postfix email to the jdmail system-Linux Enterprise Application-Linux server application information. The following is a detailed description. Postfix mail import is divided into two situations, mainly because of the mail storage format problem. One is the mailbox format and the other is the maildir format.

For maildir format:

The problem involved is the import type and directory structure.

You can directly select qmail For the import type. The directory structure must be noted. The directory structure under the directory you specified is a directory structure such as domain/user/userdir/maildir.

For example, the original users are all directly using the system users, and their mail storage directories are all stored in/home/user/Maildir. in this case, we recommend that you use another location (with sufficient space ). create a new mail folder (I created this folder ). Create a folder named by domain name, such

My original domain name is rainbird.net. Here I can create a new directory structure such as/mail/rainbird.net.

Then cp-r/home/*/mail/rainbird.net/

Directory structure after finishing:

/Mail/rainbird.net/rainbird/Maildir/
/Mail/rainbird.net/rainbird/Maildir/new
/Mail/rainbird.net/rainbird/Maildir/cur
/Mail/rainbird.net/rainbird/maildir/tmp

Here, rianbird.net is the original domain, And rainbird is the original user.

OK. After the preparation is complete, go to the email background. In "system settings"-> select "mail import"

Original mail system type: Qmail

Original email storage directory:/mail

Users to import: "This is empty"

Click "import". The system prompts "whether to import emails from other systems". Click "OK ". A new page is displayed. after a period of waiting (depending on the number of emails and the number of users)

On the right side of the page, a prompt is displayed, indicating that the image is successfully poured:

6. rainbird.net rain34 1000 5.75 M successful
7 rainbird.net rain33 1000 5.75 M successful
8 rainbird.net rain32 1000 5.75 M successful
9 rainbird.net rain31 1000 5.75 M successful
10 rainbird.net rain30 1000 5.75 M successful
11. rainbird.net rain29 1000 5.75 M successful
12 rainbird.net rain28 1000 5.75 M successful
13 rainbird.net rain27 1000 5.75 M successful
14 rainbird.net rain26 1000 5.75 M successful
15 rainbird.net rain25 1000 5.75 M successful
16. rainbird.net rain24 1000 5.75 M successful

After a dialog box pops up, it prompts that the import is successful.

For the mailbox format

It is troublesome to import emails in the mailbox format to jdmail. You must first convert the emails in the mailbox format to the maildir format, and then use the import method in the maildir format.

. You can use box2dir to convert the format, a perl file. execution format: box2dir Mailbox Maildir. the Mailbox file must exist, and the Maildir folder may not exist. the script is automatically created. how to batch convert multiple users? Let's get started. After converting the basic skills of the linux administrator, it will be OK. Convert the maildir format according to the conversion. Good luck!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.