Koozali.org: home of the SME Server

Email location and Migration/consolidation

Offline TrevorNWatson

  • *
  • 15
  • +0/-0
Email location and Migration/consolidation
« on: June 12, 2012, 05:32:09 PM »
We are currently looking at moving multiple SME servers into a single server. 

The biggest thing we're looking at is consolidating the email from each server onto the new one.

We have a 5 servers, each running SME server (ranging from 6.0.1 to 7.something)

Two questions in regards to this.

1. Where are the emails stored on the drive?  I've seen in /home/e-smith/files/users/<username>/Maildir/ there appears to be all the IMAP servers and files (that I can't look at because of the colon in the name i think). 
We want to make sure that the new server will have enough space to migrate the existing emails.

2. Is there an easy way to migrate the email users/imap folders/emails to the new server?

Thanks in advance.

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Email location and Migration/consolidation
« Reply #1 on: June 12, 2012, 05:43:04 PM »


once i was forced to inject back recovered emails from one broken HDD
I've done this by putting them into appropriate place for everyone (this is quite simple if you'll have the same username)
Otherwise you need to figure out how to  match new username with old one

first get into the "root" of users email

(/home/e-smith/files/users/)

and then issue this set of commands for each user added "by hand"

Code: [Select]
find username -type d -exec chown username:username {} \;
find username -type f -exec chown username:username {} \;
find username -type d -exec chmod 755 {} \;
find username -type f -exec chmod 600 {} \;

if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Email location and Migration/consolidation
« Reply #2 on: June 12, 2012, 06:17:58 PM »
TrevorNWatson

You can use the concepts here
http://wiki.contribs.org/Backup_server_config

Limit what you want to the users Maildir folders, you may have to do it individually for each user to exclude the users home folders
This method will copy/move the users emails but you will need to manually create all the new users on the destination sme server first.

Alternatively you can use IMAPcopy,
or
setup the user mail accounts for each server on the same email client and simply drag and drop the messages.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email location and Migration/consolidation
« Reply #3 on: June 13, 2012, 02:10:51 AM »
I've seen in /home/e-smith/files/users/<username>/Maildir/ there appears to be all the IMAP servers and files (that I can't look at because of the colon in the name i think). 

Yes, that's where all the mail messages are (in IMAP folders).