Import/Migrate messages from Linux

I'm installing a new Xserve to replace a Linux server running RedHat 9 and I need to bring all the existing mail to the Xserve. All accounts on the RedHat machine are IMAP and will be on the Xserve, but the storage formats are very different.
Anyone recommend the best way to perform this import/migration?
Thanks.

I, too, have had good luck with imapsync. I installed imapsync-1.241 as per INSTALL directions in source tar-ball, with the inclusion of Perl Digest::HMAC_MD5 module, which helps for CRAM-MD5 logins (like for the remote server). I installed on the copy-to machine, in my case the Xserve, and copied from a Linux machine running Courier IMAP server.
There is also a imapsync2 version that can be installed, but I found the version 1 to work OK for my transfer.
Here is a simple shell script I wrote to transfer many mailboxes:
#!/bin/bash
dhusers=("someuser" "anotheruser")
dhpass=("somepassword" "anotherpassword")
xsusers=("myuser" "myotheruser")
xspass=("mypassword" "myotherpassword")
len=${#dhusers\[*\]}
i=0
while \[ $i -lt $len \]; do
echo -e "\nSyncing Mail from User ${dhusers\[$i\]} to User ${xsusers\[$i\]}:\n"
imapsync \
--host1 'old.server.com' --user1 "\"${dhusers\[$i\]}\"" \
--authmech1 'LOGIN' --password1 "\"${dhpass\[$i\]}\"" --expunge1 \
--host2 'new.xserve.com' --user2 "\"${xsusers\[$i\]}\"" \
--authmech2 'CRAM-MD5' --password2 "\"${xspass\[$i\]}\"" \
--syncinternaldates --subscribed --subscribe --prefix1 'INBOX.' \
--exclude 'Trash|FlaggedSpam'
echo -e "\n\n"
let i++
done
exit 0
You may notice a couple of things I did. First, you want to expunge any "marked as deleted" files on the from server, then only copy subscribed folders (if that is what you want), then subscribe to them once they are made on the new server. Also, Courier uses . instead of / for its folder delimiter (INBOX. instead of INBOX/) like on the default Leopard server Cyrus setup. I did not have to expressly tell the --prefix for the to server, it handled it when asked to create new folders. Lastly, if there were folders setup for the Linux system that are not part of your new system, exclude their transfer.
Since the shell script contains passwords, you'll want to keep it writable and executable by root only. Also, imapsync requires being run as root or sudo. If one of your passwords includes a $ then you will need to excape it with \$ or imapsync will fail on connect, since the script will try to expand whatever is after the $ as if were a variable.
Larry

Similar Messages

  • Problems with importing text messages from PC Suit...

    Problems with importing text messages from PC Suit 7.1.18.0 to my Nokia 5800
     I am trying to import a csv file that contains text messages (Note that this file was created using PC Suit 7.1.18.0) to a subfolder that I have created to My Folders but PC Suits only imports the text messages to the Draft folder. Note that initially it shows that the messages are import in the correct folder but after a refresh it shows them in the Draft Folder. Is their any setting that I should change in the PC Suit or the phone? My computer runs on Windows XP Service Pack 3 and the Nokia 5800 was upgraded to the latest firmware v20.0.012
     Thanks for your help

    Most phones only allows importing of draft and archived box for SMS.
    To do a restoring, you need to backup the SMS as a .nbu file using PC Suite and restore later.
    If you got an SD card, you can also do a backup on the SD Card (backup.arc) then restore later (reset and restore: backup.arc and mmc).
    What's the law of the jungle?

  • How do I import email messages from another server?

    Heya,
    So I can't figure out how to import mail messages from another server into this one? I had [email protected] pointing to the old one, when I repointed it obviously all my email "disappeared" because there is none on the new server. So how do I move it from the old server to the new one? Usually I'd just drag and drop the email message files over FTP but SLS doesn't seem to give me permission to do that on this one.
    Thanks!

    Search for discussions of the imapsync tool.

  • Migrate DB from linux box to unix box

    any specific metalink document available for doing the migration of DB from linux to unix..
    thanks
    regards

    You can use the Transport tablespace concept. But it is important for you to be on a 10g database, otherwise the only way you can perform this migration is by using the traditional export/import.
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#sthref1287

  • Import selected messages from Mail backup

    I recently did a Carbon Copy Clone backup, switched my hard drive and cloned back to the new drive. So far, so good. But 3 days elapsed between the clone and the switch and I'd like to recover my Mail messages from that period. I have the old drive hitched up in an enclosure, am wondering if I can selectively import messages or do I have to import the whole mailbox?
    Thanks,
    Phoebe

    Thanks for helping David. I can see individual messages in the (archive) mailboxes and when I click on them I can see their dates. I only need three days worth. I eventually worked around this by copying the ones I wanted to the desktop and then opening them in Mail and resending them to myself to get them into the mailbox. Clumsy but effective. I guess I could have imported them all and then deleted the ones I didn't need too.

  • Help with importing Mail messages from cloned system

    I decided to format and reinstall Snow Leopard on my iMac. Before I did, I backed everything up and, following Apples instructions, thought I had saved all my mail messages etc. It didnt work, or at least, I couldnt get it to work!
    So, I need help getting my messages back.
    I have Time Machine on an external firewire drive but cant access backups earlier than my recent new install. I also have a clone of my old installation on an external ( USB) drive that I can boot to that contains all of the earlier Mail messages I want.
    How can I move the mail messages from that account to my new installation?
    Allan

    I was able to resolve the matter from an extra found on the MS Office CD. Thank you.
    http://www.kbalertz.com/kbNamed_273841/This.article.describes.create.MBOX.files. Microsoft.Entourage.back.message.Note.This.feature.only.applies.message.used.wit h.Address.Notes.aspx

  • Migrating network from Linux to Apple

    I am new to the Apple world (first post ) and I would like advice on the best way to reconfigure my network from a Linux based "do-it-yourself" to an easier Apple happy network, reusing as much exsisting hardware as possible.  I have 150GB of media data excluding the many DVD's I want to digitize (this should easily exceed 500GB once completed) so it is available to all apple devices.  I have a 500GB HDD Mac mini, small USB 500GB HDD, Linux server with 2 x 500GB HDDs, my old gaming Windows PC with a 500GB HDD, and various apple products that access the media.  The mac mini will be the central Apple media computer but I want to back it up using Time Machine and need to store the movies on an external disk in a way that does not break the media sharing, like Apple TV.
    My questions are,
    1. Should I store the extra movies on the 500GB USB HDD and then use the Linux server as a SAMBA share for Time Machine, or vice versa?
    2. Given the hardware I have, how would you set-up the home network? 
    Again, my goals are to provide an immediate back-up (time machine) and a 3rd back-up that protects against fire, flood, or natural disaster.  I want to avoid issues where I am writing scripts again.  I am an engineer that is used to manually configuring all of this but am also getting older am having less patience.  This is what caused me to buy the Mac Mini in the first place. 
    Thank you in advance for detailed advice/discussion,
    -AR

    Hi,
    You should be OK to do this since export/import works well cross-platform, providing you are on roughly the same version of the database - I doubt that you would have any major problems from 9.2.0.4 to 9.2.0.7.
    If you are doing a full export/import and you are relying on the import to create tablespaces and datafiles, then you will need to make sure that your HP server has the same filesystem layout or you will get failures.
    What I have tended to do when doing migrations like this is to pre-create the database on the target server (i.e. create the database and all the tablespaces and datafiles) and then import the relevant user schemas (you might want a first pass which is a full import but without inserting data so that all users get created). Assuming that your database is in good shape and no user objects are owned by SYS or SYSTEM, it should be fine.
    Probably the best advice I can give is to make sure that you give yourself time to run through (i.e. practice) the migration a few times so that you are sure of the process before doing it 'for real'.
    Cheers,
    R

  • Database migration/upgrade from Linux (10.2.0.3) to AIX (10.2.0.5)

    We are migrating 120+ Oracle 10gR2 databases (10.2.0.1, 10.2.0.3 & 10.2.0.5) from 30+ physical Linux (RHEL 4.6 & 5) servers to an AIX 6.1 virtualized environment running on two new P770 servers. Our migration approach will be to use Datapump Export and Import as we are moving between platforms and 95% of the databases are 5-10 Gb in size, so long export/import times should not be an issue. We have access to IBM's Xenobridge migration tool, but will try to do most of the work manually to offset the tool's high license cost.
    Our server team is in the process of creating our AIX image(s) and we are preparing for the Oracle software installation . My question relates to the Oracle 10gR2 patch level on the new target AIX servers as our client has asked about patching all migrated databases up to 10.2.0.5.
    Can I simply install the 10.2.0.1 base software on the AIX server, apply patch 10.2.0.5 and follow-up patch p10248542 before importing?
    Is my upgrade approach then to simply export the 10.2.0.1 or 10.2.0.3 databases on Linux using the lower version of the Export utility and import into a copy on the AIX server using the 10.2.0.5 Import utility?
    Will the Import utility take care of the upgrade from 10.2.0.1 or 10.2.0.3 to the 10.2.0.5 level?
    Do I have to perform a manual upgrade and should there be any outstanding issues specifically related to Daylight Savings Time operability?
    Here's my high level plan:
    1. Install 10gR2 on AIX server and patch to 10.2.0.5
    2. Export 10.2.0.3 database on Linux server using 10.2.0.3 Export utility
    3. Use DBCA on Linux server to create "database create" template and transfer this template to AIX server for later use
    4. Create "shell" database on AIX using DBCA on AIX server referencing template copied over from the Linux server
    5. Import 10.2.0.3 database export into 10.2.0.5 shell database
    Just wondering if all the steps in the 10.2.0.5 patchset notes (Readme for 8202632) still apply when using the export/import approach?
    All feedback and comments around missing steps would be greatly appreciated.
    Thank you,
    Jeff

    Your approach is correct - imp/exp (or impdp/expdp) will work. You can ignore the notes in 8202632. I would highly recommend that you perform a test upgrade first to validate, tweak as needed, and perfect your process.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14238/expimp.htm#i262220
    Pl also review MOS Doc (Migration of Oracle Database Instances Across OS Platforms)
    HTH
    Srini

  • How to import open messages from solman 3.2 to solman 4.0?

    Hi All,
    I have implemented service desk for solman 4.0 successfully.We had solman 3.2 implemented before. We have some open messages in solman 3.2.
    How can I import all open request from solman 3.2 to solman 4.0?
    Please help me out in the same.
    Regards,
    Niks

    Roel Beckers wrote:
    > client copy from system A to system B could maybe work.
    > of course, some customizing will also be copied.
    You can´t do client copies over different versions (3.2 vs. 4.0) - the copy won´t start because there are a LOT of DDIC differences between those versions.
    Markus

  • Import text messages from the previous carrier?

    I'd like to see old text messages, stored on the sim card of my old phone with the previous carrier (tmobile), to be imported on the iPhone. Any ideas? Thanks.

    Not possible.
    You can see your old SIM messages on your old SIM on an old cellphone, but not on an iPhone. The iPhone does not access your SIM card in any way accept for it's network connection.

  • Can't import email messages from an archived mailbox

    I've got a folder here that I grabbed out of my the "Mailboxes" folder in the "Mail" folder of my Library in order to rescue it while I was doing some reworking of one of my email accounts. Now that I have my email account up and running again, I'm trying to import that folder back into Mail, but when I try to import it I get the following error message:
    No valid Mail for Mac OS X files were found
    What am I doing wrong and how can get these messages imported back into Mail? The folder contains a doc titled "Info.plist" and then a folder titled "Messages" with a ton of files in there ending in .emlx.
    Help please! I'd love to retrieve all this mail if I can -- thanks!

    I think that's going to work -- thank you!! Looks like I need to just import a certain amount of messages into Mail at a time, though -- I tried to full set (2,700 messages) and Mail crashed. Oops. But it looks like doing them in batches should work.
    Thanks again!!

  • N82 How to import text messages from my pc bk to m...

    Hi Guys just got a N82 and wondered how I would get text messages that I have saved on the pc bk on to the phone ? tryed to copy the messages folder in the data fold but nothing works
    Any help would be great thanks

    hi missm,
    there is an application inside the N82 called "Switch" try to look inside tools, then utilities, use that one and just follow the instructions on the phone, will be able to transfer everything from the 6290 to N82 easily...

  • Issues importing messages from live mail

    I am having problems importing messages from my WIndows Live Mail to my Thunderbird. The instructions say go to "Tools ImportExport | Import all messages from a directory | Also from its subdirectories." However in my Thunderbird l have tools, import and then it takes me to a wizard which says "This wizard will help import messages....." and when l select 'mail' as the type l wish to import it asks for a type of mail l want to import. Windows Live Mail is not in the list. Do you have any instructions or advice?

    Those instructions assume that you have installed [https://addons.mozilla.org/en-us/thunderbird/addon/importexporttools/ ImportExportTools].
    http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html
    Or, if you can export the WLM mail to eml files, they can be dragged from their Explorer location and dropped in a TB folder.

  • Import messages from thuinderbird to Mail

    I am trying to import my messages from thunderbird 3.1 to _Mail 4.4._ The import procedure suggested from Mail app doesn't work correctly because it leaves several messages without importing them.
    I even tried to rename thunderbird's mailboxes to .mbox and import them again but the result was the same.
    Does anyone know how to solve this?
    Thank you

    OK I did manage to export my messages to a folder as .eml files, but how can I import then into Mail?
    If I double click on each one it opens in Mail (default email client) and then I am able to move it wherever I want.
    But I can't do this with all my messages... (1000 emails)
    Any suggestions?
    Thank you

  • How do you delete specific message from users in Exchange 2013 DAG database?

    Our network has been inundated with spam from INTUIT.COM with the SUBJECT: PAYMENT OVERDUE and contains a link to download a form from a Dropbox. Obviously, very suspicious and clearly spam. We're using Postini as our Edge Transport/ Spam filter but messages
    are still getting in. I've enable anti-spam on all my mailbox servers, set the SCL values but that hasn't worked.
    I understand that Exchange Edge Transport role has the more aggressive spam fighting features but Microsoft also recommends an online spam filter. 
    Needless to say, we've taken steps to quarantine those messages based on subject and sender in Postini but now would like to delete those messages from the users in went to. My users are two different DAG mailbox databases. I found this article http://www.techieshelp.com/delete-mail-from-multiple-mailboxes/ but
    the command didn't work. I'm thinking its because I have DAG and a couple of databases. I even tried "get-mailbox -database "databasename" | search-mailbox -searchquery subject: "Payment Overdue"" and that didn't work. 
    I'm running Exchange 2013 SP1 DAG across two sites comprised of four 2013 SP1 mailbox servers.

    Check this out
    http://technet.microsoft.com/en-us/library/ff459253%28v=exchg.150%29.aspx and specifically look at the section titled  "Search messages and log the search results"
    Or you can use this
    http://technet.microsoft.com/en-us/library/aa996371%28v=exchg.150%29.aspx with the WHATIF parameter
    Alternatively if you are open the 3rd party solutions check out Lucid8's DigiScope
    http://www.lucid8.com/product/digiscope.asp
    which would allow you to see the search results and then delete OR if desired you can set the On FIND action to Export to PST and then Delete so that you can preserve and then remove messages on the fly as the search system finds
    Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline Exchange Mailbox and Public Folder EDB's and Live Exchange Servers or Import/Migrate direct from Offline EDB to Any Production Exchange Server, even cross version i.e. 2003 -->
    2007 --> 2010 --> 2013 with Lucid8's
    DigiScope

Maybe you are looking for

  • Cannot enable and use Wi-Fi on my Satellite L500-176

    Hi, I have a Toshiba L500-176 with Windows 7 Home Premium (64), only one month old and I have a problem with it. Suddenly, it stopped connecting via wifi, I thought it would be to have installed or uninstalled a program and restores the system to a p

  • Why the query of the object still can work after the datafile has been deleted?

    Dear friends: Recently, I deleted a datafile from OS but don't touch the correspondent tablespace in OEM(actually the datafile name still exists in OEM after I deleted it from OS). I found out I still can create objects such as table and query it in

  • Encoding issue in receiver file adapter

    Hi experts, I am having a file to file scenario using integrated configuration where i am using file encoding 'US-ASCII' for converting the target file to ASCII and its not working. Is there any other settings need to be done in the receiver file ada

  • Photoshop CS6 Help Required -  Whites are slightly cream

    This is the first time I have posted a question on this forum.  If I am in the wrong place please accept my apoligies. Thanks. I have a problem which I have spent days and days trying to solve but without success, I sincerely hope someone can help me

  • Keyword and description not included in the Page Properties window

    There is no  Keyword and Description option in the Page Properties window (metadata). The only item available is HTML as <head>. How do I get Keyword and Description options included?