Can I move emails to another account?

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Can I move emails to another account?

Unread post by coolemail »

I have a Linux server with Plesk 8.6 running and ASL.

I run my local rugby club communications, and that has masses of emails. Each age-group has an administrator e.g. u7admin@domain.com; u8admin@domain.com etc.

We are at the end of one season, and the administrators will all change up an age-group. So the U7 administrator who was u7admin@domain.com will be the U8 administrator and will then be u8admin@domain.com. The majority have been using Horde to get their emails, and want to keep the emails that are in their mailbox, and want to transfer their contacts.

The contacts is the easy bit as I notice there is an export function.

But can I do anything about the emails? The easy solution is to tell them all to set it up as a POP3 email, download the emails, and then they can all switch. If there was a way I could copy the emails from one mailbox to the other, I would love to do that. Can I? The key directory, I think is the /var/qmail/mailnames/domain.com/xxadmin where there are some sub-directories.

I tried all the following, but none of those worked:

Code: Select all

cp -R /var/qmail/mailnames/domain.com/email-1 /var/qmail/mailnames/domain.com/testadmin
cp -R /var/qmail/mailnames/domain.com/email-1/ /var/qmail/mailnames/domain.com/testadmin/
cp -a /var/qmail/mailnames/domain.com/email-1 /var/qmail/mailnames/domain.com/testadmin
cp -a /var/qmail/mailnames/domain.com/email-1/ /var/qmail/mailnames/domain.com/testadmin/
Can anyone tell me whether/how I could do this, or what I have done wrong above?

Many thanks in advance.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: Can I move emails to another account?

Unread post by breun »

Instead of using POP3, I'd use IMAP. You can open two account in an IMAP client and move the messages that way.

Or use imapsync.

Or you could just rename the mailbox through Plesk.
Lemonbit Internet Dedicated Server Management
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Can I move emails to another account?

Unread post by coolemail »

THANK YOU breun.

IMAP, and opening 2 of them, would be a bit too much for them to cope with - there are a lot of them, and not very computer literate!

I had completely missed the re-naming option that you mentioned which I can do by dropping the top age-group and then re-naming them all to the next one up. I appreciate you pointing me towards that. It means that all the redirection etc. remains as-is which is brilliant.
coolemail
Forum Regular
Forum Regular
Posts: 369
Joined: Tue Dec 16, 2008 8:01 am
Location: United Kingdom

Re: Can I move emails to another account?

Unread post by coolemail »

Just started trying to do this and got:
Error: Unable to update the mail account properties:mailmng failed: mailmng: unable to change mail authentication info: DB_KEYEXIST: Key/data pair already exists
System error 2: No such file or directory

In Plesk I was trying to change the name of the email account and the password, and it came up with that error.

Can anyone advise?

EDIT: When I change one at a time, it appears to work better. What needs to be done is:
1. Change password
2. Change email address - I get the error above
3. Change email address again - it works

Now with them all, I get "Error: spam filter does not exist". Not sure why as I have Spam Assassin installed and it should be operating on all mailboxes.
Post Reply