Index: [Article Count Order] [Thread]

Date:  Sun, 2 Dec 2007 08:24:24 -0600
From:  Larry Smith <lesmith (at mark) ecsis.net>
Subject:  [coba-e:11337] Re: how to move mail spools over from raq to MSI server
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200712020824.24654.lesmith (at mark) ecsis.net>
In-Reply-To:  <051301c83483$fc187300$f4495900$@com>
References:  <03a101c8327b$f7f342a0$0101a8c0 (at mark) systemax> <200711291231.34171.lesmith (at mark) ecsis.net> <051301c83483$fc187300$f4495900$ (at mark) com>
X-Mail-Count: 11337

On Saturday 01 December 2007 19:38, Mitchell Rothschild wrote:
> Jim,
>
>   Yes, but _highly_ recommend you copy all the appropriate files to the new
> server first, then use
> "cat old/home/spool/mail/<user1> >> /home/sites/*/users/<user1>/mbox
> NOTE the double arrow (>>) as this will append to the existing mailbox just
> in case it is receiving mail or working while you are doing the copy.
> Otherwise you will simply replace (the scp) what is there now.
>
> Hi,
>
> This works great....
> After I copy the files over and add the mail to the new files.
> How can I erase the mail in the old file..this way I can check the next day
> and do the process over to catch any mail from dns servers still delivering
> mail to the old server.
>

Jim,

  Quite a few ways to do this also, but easiest (to me) is just 
"  > old/home/spool/mail/<user1>"
Note the single arrow.  That copies "nothing" (null) to the existing mailbox 
essentially emptying the file but leaving the permissions and such alone.

-- 
Larry Smith
SysAd ECSIS.NET
sysad (at mark) ecsis.net