LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2010, 11:56 PM   #1
pythonn
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Postfix Mailbox user migration


Dear Linux Guru.

I've been researching for a while now but to no avail, so your help will be much appreciated.

I'm looking into migrating postfix mailboxes and users from an old machine running Fedora5 to a new machine running cenOS. I was wondering, what would be the procedure to migrating over existing postfix mail to the new machine? Is it as simple as copying over /home directories and /etc/passwd etc?

Thank you for your help.
 
Old 01-24-2010, 01:27 AM   #2
darvil
LQ Newbie
 
Registered: Jan 2010
Distribution: centOS
Posts: 19

Rep: Reputation: 1
ah mail migration, one of the most irritating thing in the world.

Moving postfix files and /etc/passwd is NOT the way to do it.

The best and elegant way to do IMHO is to use imapsync (http://freshmeat.net/projects/imapsync/). I assume you are using imap and this is just a great way to do it.

First you create all the mail accounts on the new centOS machine. Then you sync the emails from the old to the new. It will copy all the folders (draft, deleted, etc) and it will also have all the timestamps right. I just recently did this and as far as I know it is THE easiest way for me. You will need to know the username and password to do this sync.

You should install imapsync on another box FYI. I know installing the latest version of it required for me to add some perl modules and a newer version of perl. If you run into any snags let me know. I'll give you a hand. But I rather you try it on your own first and hit me up if the snags are too much.
 
Old 01-28-2010, 07:16 PM   #3
pythonn
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hey man, thanks for your help

Im really stuck right now with Imapsync...



[vs237174@domain2 IO-Socket-SSL-1.18]$ screen -r

with perl 5.8.8
Mail::IMAPClient 2.2.9
IO::Socket 1.29
IO::Socket::SSL 1.18
Digest::MD5 2.36
Digest::HMAC_MD5
Term::ReadKey
Date::Manip
and the module Mail::IMAPClient version used here is 2.2.9
Command line used:
/usr/bin/imapsync \ --host1 mydomain1 --user1 sarah.tueno --passfile1 /etc/shadow \ --host2 mydomain2 --user2 sarah.tueno --passfile2 /etc/shadow
Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
TimeZone:[EST]
Will try to use CRAM-MD5 authentication on host1
Will try to use CRAM-MD5 authentication on host2
From imap server [mydomain1 ] port [143] user [sarah.tueno]
To imap server [mydomain2 ] port [143] user [sarah.tueno]
Can not open imap connection on [mydomain2 ] with user [sarah.tueno]: IO::Socket::INET: connect: Connection timed out

I've googled and such and tried changing a few libraries but to nothing seems to work.

Thanks for your help!
 
Old 01-29-2010, 08:43 PM   #4
darvil
LQ Newbie
 
Registered: Jan 2010
Distribution: centOS
Posts: 19

Rep: Reputation: 1
You sure you have all the modules installed correctly?

Mail-IMAPClient-2.2.9,
Net-SSLeay-1.3.5,
IO-Socket-SSL-1.18,
Date-Manip-5.5.4,
Term::ReadKey-2.30,
Parse-RecDescent-1.96.0,
Net-IDN-Encode-0.99,
Unicode-Stringprep-1.00_20080919,
Digest-MD5-2.38

I assume you installed the latest imapsync version right?

Also try with plain text although I think its not going to fix it. Give it another fresh go. Are you centos?

imapsync --host1 domain1.com --authmech1 PLAIN --user1 blahblah --password1 'mypass' --host2 domain2.com --authmech2 PLAIN --user2 blahblah2 --password2 'mypass'
 
Old 03-04-2010, 03:12 PM   #5
wasamzy
Member
 
Registered: Apr 2009
Location: Ghana Accra
Posts: 64

Rep: Reputation: 15
I am also having the same problem. Please let me know how you fixed it.
 
Old 01-31-2011, 07:18 PM   #6
bshepka
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Smile Great tool

Thanks for the great tool. I used it to migrate from a CentOS server that had grey hair to to brand new Ubuntu box.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix to create mailbox upon user registration fedor@ Linux - Server 2 09-16-2009 10:47 PM
Problem on restricting a mailbox size of particular user(s) in Postfix. haariseshu Linux - Server 2 06-21-2008 11:04 PM
Problem on restricting a mailbox size of particular user(s) in Postfix. haariseshu Linux - Server 1 06-21-2008 02:15 AM
Problem on restricting a mailbox size of particular user(s) in Postfix. haariseshu Linux - Software 1 06-21-2008 02:15 AM
Mailbox Migration from MCIS to Cyrus mcTwix Linux - General 0 05-06-2004 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration