OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Move messages to another server

From: Alexandros G. Fragkiadakis (alfragecon.soc.uoc.gr)
Date: Mon Oct 29 2007 - 03:03:44 CDT


Jorey Bump wrote:
> Florian Lindner wrote, at 10/28/2007 12:02 PM:
>> Hello,
>> this message is not really related to postifx, but I think it's close
>> enough to not be entiriely offtopic. If it is too offtopic please
>> flame me...
>>
>> I have a number (~ 300) of messages in a maildir (each message is a
>> file) and I want to move these messages to a new server. (both are
>> postfix and under my control).
>> Since the old server is not responsible for that domain anymore (both
>> MX and virtual_alias_domains has changed) I think the easiest way
>> would be to just resend them. The mail should be modified as little as
>> possible (From and To should be kept as is).
>>
>> How could this be achieved best?
>
> This is not a Postfix issue, because Postfix is no longer responsible
> for the messages.
>
> Don't resend them. If you can, simply create another account for the new
> server in your mail client, and copy the messages to the new
> destination. This assumes you are using IMAP, and it will preserve the
> message and most of the relevant flags.
>
> Alternatively, you may be able to transfer the maildir to the new
> location (via scp, rsync, etc.). However, this approach requires that
> you set the permissions and ownership properly on the destination, and
> handle any requirements of your IMAP/POP server.
>
> For the number of messages you're talking about, using the mail client
> is probably easiest, depending on your level of experience.
>
>
I've used a utility called imapcopy, with great success :). All you have
to do is to specify the source mail server and the destination
mailserver. But, you also have to specify, the usernames and the users'
passwords.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.