Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-13-2010, 01:45 PM
|
#1
|
Member
Registered: Jan 2004
Posts: 59
Rep:
|
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?
|
|
|
04-13-2010, 02:54 PM
|
#2
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
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.
|
|
|
04-13-2010, 04:12 PM
|
#3
|
Member
Registered: Jan 2004
Posts: 59
Original Poster
Rep:
|
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...
|
|
|
04-13-2010, 04:38 PM
|
#4
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 12:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|