LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-20-2015, 02:20 AM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
How to migrate Postfix ?


HI All,

I just would like to ask You how to migrate Postfix in the most secure way from old system to new one ?

I already migrated /etc/postfix* configurations. I`m able to start all my Postfix instances, but I havent done yet any Postfix data migration - I mean /var/spool/postfix* and /var/spool/mail


Will it work if I will simply copy all files from /var/spool/mail and /var/spool/postfix* from an old server to the new one ? What about queues ? Is there any risk to loose some E-mails ?

I`m waiting for Your opinions.

With kind regards

Dlugasx
 
Old 02-20-2015, 06:21 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Assuming this is a mail server that generates no mail locally:

Once you stop postfix listening on the network it won't get any new mail but will process existing mail it has. With that all gone replace oldbox with newbox, test it and you're done. Inbound email will wait a short time but arrive as expected on newbox.

I wouldn't copy files under /var/spool/ . Make sure any aliases and mailing lists are created on newbox.

When I've done this I've opted to recreate stuff rather than transfer files. That way there's no chance of a config file applying to the wrong software version. http://www.ibiblio.org/harris/500milemail.html
 
  


Reply



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
Migrate Linux User Password to Postfix Password Database paul.lkw Linux - Server 1 06-20-2011 07:06 PM
How to migrate some mailboxes between on line servers using postfix? jcmejiaf Linux - Server 1 11-09-2010 04:22 AM
How to Migrate from Qmail toaster to Postfix-Dovecot? gh0st Linux - Server 3 06-22-2009 02:04 PM
migrate from postfix to qmail izghitu Linux - Software 1 06-18-2008 02:51 PM
Migrate from postfix to postfix with my sql? res5 Debian 1 09-01-2007 12:15 PM

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

All times are GMT -5. The time now is 02:39 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