On Wed, Jan 13, 1999 at 11:29:20PM +0100, Mike Gerber wrote:
> Hello Qmail-Users!
>
> My plan is to copy the mailsystem of one of my companies' host to
> another (the old one will disappear). This new host will have the
> same name (DNS-entries will change) but another IP.
>
> The problem is: I'd like to save the queue.
>
> I'll do it this way (after installing Qmail itself):
>
> * copy /etc/passwd (non-shadow-system)
Yes.
> * copy /home directories (Maildir delivery)
Yes.
> * copy /var/qmail/control directory
Yes.
> (these three should be no prob)
Correct.
> Now, could I safely
>
> * copy /var/qmail/queue directory
Nooooooooooooooooooo!!!!!!
> * copy /var/qmail/users directory
I guess so.
> to the other host? Will Qmail "take" these?
Nope.
You should copy the first three and the last (users) to the new machine,
[after turning off qmail ofcourse, especially qmail-smtpd, making sure all
local deliveries have been done]. Then remove everything from locals and
virtualdomains on the old machine. Put ":[1.2.3.4]" in smtproutes where 1.2.3.4
is the IP of your new machine. Restart qmail. Do qmail-tcpok and
killall -ALRM qmail-send. This will transport the queue from the old to the
new machine. Move DNS pointers. Leave the old machine running for a couple
more days so it'll accept mail for the old IP. It should send this mail to
the new machine automatically.
Greetz, Peter.
--
<squeezer> AND I AM GONNA KILL MIKE | Peter van Dijk
<squeezer> hardbeat, als je nog nuchter bent: | [EMAIL PROTECTED]
<squeezer> @date = localtime(time); | realtime security d00d
<squeezer> $date[5] += 2000 if ($date[5] < 37); |
<squeezer> $date[5] += 1900 if ($date[5] < 99); | * blah *