LinuxQuestions.org
Help answer threads with 0 replies.
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 04-13-2010, 01:45 PM   #1
crypted
Member
 
Registered: Jan 2004
Posts: 59

Rep: Reputation: 15
Moving Postfix mailboxes to new machine


Okay, I am tossing my old machine with CentOS 5.4. I will be installing a new server with Debian 5.0.

How can I move the POSTFIX data files and email accounts so that I can keep the users from losing all of their IMAP and unreceived POP3 email?

Or, if that isn't available, how could I restore their mailboxes to the new POSTFIX once all of the accounts are re-setup on the new machine?
 
Old 04-13-2010, 02:54 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
If you're using mailspool copy the mail spools to the correct location on the new machine, if you're using Maildir copy that to the correct location on the new machine. You'll need to move the accounts with id and such from system auth files (passwd, shadow, group) and ensure ownership is right but generally its a fairly painless process as long as neither machine is receiving new mail at the time.
 
Old 04-13-2010, 04:12 PM   #3
crypted
Member
 
Registered: Jan 2004
Posts: 59

Original Poster
Rep: Reputation: 15
Yes, it's Maildir. Now, the real dilemma I have is that I am migrating all data and re-establishing accounts on the new machine. Once that is done, I will be taking the old server offline and putting the new one it its place so that it will have the same IP range.

Would you have any thoughts on how to postpone mail deliveries on the old machine, run a batch script to sftp the data to the appropriate directories, and then re-enable the mail for delivery once the new machine is swapped over onto the appropriate IP range?

I'd assume I could shutdown Postfix and just do a fast transfer and swap, but I don't know...
 
Old 04-13-2010, 04:38 PM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Just shutdown postfix and mail will queue on originating servers for some period of time. As far as moving the actual data goes I'd recommend using rsync.
 
  


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 prioritizes aliases instead of mailboxes. gomthaus Linux - Server 2 08-23-2009 08:53 AM
Migrating Exchange mailboxes to Postfix sog Linux - Newbie 2 06-15-2009 07:32 PM
Problem with Courier-Imap+postfix on 5 mailboxes mago Linux - Server 0 05-20-2008 05:02 PM
Counting Mailboxes on Postfix? carlosinfl Linux - Server 7 02-08-2008 04:38 PM
Postfix - track mail or browse mailboxes czezz Linux - Networking 3 07-19-2005 03:33 PM

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

All times are GMT -5. The time now is 12:52 AM.

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