On Thu, Dec 01, 2011 at 10:56:34AM +0100, Roland de Lepper wrote: > Where're planning to migrate postfix from Suse to Ubuntu 10.04 LTS. The > Postfix version on Suse has an higher version number than in Ubuntu > 10.04LTS (2.7.2 - 2.7.0). > > Because of the migration we have to shutdown the MySQL server to make a > full dump of it and import is on the new mailserver. In the meantime, all > mail coming to the old-mailserver will be stored in the HOLD queue. > When the new Mailserver is ready (with the same hostname and > public-ipaddress) I want to copy the HOLD queue from the old mailserver to > the new mailserver, then do a postsuper -r ALL to deliver the messages on > the new mailserver.
Generally, you should not copy queue files, just deploy the new server in parallel, then update DNS names or MX records and configure the old server (relayhost=) to send all email to the new. Make sure the new server will accept the mail first of course. The mail queue of the old server will drain in minutes, so if there are no clients that still send to a stale IP address, you can then shut it down. As for the HOLD queue, you release mail from there with "postsuper -H" not "postsuper -r". When moving queue files both Postfix stacks must be down. It is in fact less disruptive to introduce the new server in parallel, and reconfigure the old. -- Viktor.