On 20 Feb 2015, at 09:14, Zalezny Niezalezny <zalezny.niezale...@gmail.com> 
wrote:

> on one of my servers I`m planning to migrate very old Postfix 2.0 to quite 
> new one 2.6.6.
> I migrated already all Postfix instances, so all Postfix configuration files 
> are already on the new machine (/etc/postfix*). Now its time to migrate 
> /var/spool/postfix and all other Postfix data files.
> 
> Will it work properly if I will simply:
> - stop old server
> - zip all /var/spool/postfix*  and /var/spool/mail/* 
> 
> - copy all /var/spool/postfix* and /var/spool/mail/* on the new one 
> - start all instances
> 
> Will it work ?
> 
> Here is written, that it will not work properly...
> 
> http://www.postfix.org/faq.html#copying
> 
> How to migrate Postfix data in the best way ?

Do note that 2.6.6 is anything but new; 2.6.6 is from 2010, and the last 
legacy release of the 2.6.x series was two years ago.

At this point, for new systems, you should be using 2.9.x as the 
absolute minimum, since 2.8.x is already out as well. See the Postfix 
announcements page for details;

http://www.postfix.org/announcements.html

As far as the migration itself; review the documentation for changes, 
both to settings you have in your configuration as well as changes to 
default settings, as the gap between 2.0 and whatever you move to is 
quite big. Start here;

http://www.postfix.org/postconf.5.html

Once you have reviewed the documentation for anything you might need to 
change, set it up on the new machine, and test all your assumptions 
about how it should work.

Your '/var/spool/postfix' should be empty, and there should be no need 
to copy that over. How you migrate stored messages on the server 
depends on how your users access their mail, which is outside the scope 
of Postfix.

In other words; move to a supported version of Postfix, and test your 
migration extensively. Good luck!

Mvg,
Joni

Reply via email to