[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transferring email from server.account to newserver.account



Travis Crook <travis@xxxxxxxxxxxxxxxxx> wrote:
> My power supply didn't want to play nice and now I am running on a new mail
> server.  I have a little problem and hope you can help me.  I have email
> that is on the old hard drive in several accounts in their "new" folders.  I
> have recreated these accounts on the new server but in the change-over I was
> asked to set up the new accounts as forward accounts (each has it's own
> .qmail file to forward to an external address instead of an actual account
> on my server).  Is there an easy way to get mail from their old "new" folder
> to be sent to the address in their .qmail file?

If the recipient is another account under your control, just move the files
over to the new recipient's Maildir/new/ folder, being careful not to clobber
any existing files (because you're not actually doing a proper maildir
delivery this way).  Otherwise, you're talking about re-queuing the messages
-- the list archives contain several examples of shellscript excerpts you can
use to do this.  Something like `find Maildir -type f | while read file ; do
[...]` will work.

Charles
-- 
---------------------------------------------------------------------------
Charles Cazabon                                <qmail@xxxxxxxxxxxxxxxxxxxx>
GPL'ed software available at:         http://www.qcc.ca/~charlesc/software/
Read http://www.qcc.ca/~charlesc/writings/12-steps-to-qmail-list-bliss.html
---------------------------------------------------------------------------