On Tue, Jul 21, 2015 at 10:56:43AM -0500, Noel Jones wrote:

> > If I were to copy /etc/postfix and /var/spool/postfix to the new
> > server, would something break?
> 
> That should work.  You'll likely need to rerun postmap on your
> indexed files so they match the libraries on the new server.

But copying queue files is not recommended.  That takes some care
to get right.  It is better to relay any queued mail from the old
server to the new, or just turn off the inflow of new mail into
the old server and let the queue "drain" until it is empty.

Don't forget:

        # postfix upgrade-configuration

after copying old configs to a new server.  If you're on a Debian
system, that's made more difficult by Debian's failure to ensure
that "postfix-files" corresponds accurately to what is actually
installed.  You might need to adjust $daemon_directory/postfix-files
to match reality.

-- 
        Viktor.

Reply via email to