How to manually import emails

Instructions for manual import of the emails to your CWP server.

1. Create all required mailboxes via CWP
2. Login in each created mailbox (this will create required file and folder structure)
3. Copy the emails (like any other files) in /var/vmail/DOMAIN.COM/USERNAME
4. Fix Permissions (chown uploaded files vmail:mail)

Example path for email account: [email protected]
/var/vmail/cwp.com/mark.s/

Example of rsync command from remote cPanel to local CWP:

rsync -avz -e "ssh -p 22" [email protected]:/home/USERNAME/mail/DOMAIN/USERNAME/ /var/vmail/DOMAIN/USERNAME/

** This command needs to be executed on the CWP server, number 22 is ssh port.

How to Fix Permissions
go to the folder where you have uploaded emails and execute the following command
chown vmail.mail *

Example:
cd /var/vmail/cwp.com/mark.s/cur
chown vmail.mail *

This instructions can be used for importing emails from any control panel, like: cpanel, plesk or any other.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Linux Applications
How to resolve spamming issue with postfix

How to resolve the spamming issue with your postfix mailserver having CWP. Before starting we should stop the postfix mailserver. service postix stop For start lets count the number of emails stuck in the mail server queue: postqueue -p | grep -c “^[A-Z0-9]” Select few similar emails and use IDs …

Web hosting control panels
[VestaCP] Getting started with VestaCP

Introduction The Vesta Control Panel is a free, open source website control panel with website, email, database, and DNS functionalities built in. More information can be found on official web page: https://vestacp.com/ VestaCP Template In Time4VPS you are able to install VestaCP template really easy and fast, only with few …

Web hosting control panels
[Kloxo] Installation of Kloxo-MR Control Panel

Kloxo-MR is a free and open-source web hosting control panel for CentOS and Red Hat Linux distributions. It allows the host administrators to run a combination of lighttpd or Apache with djbdns or BIND, and provides a graphical interface to switch between these programs without losing data. It is also …