Moving mail to a new Volume

I want to move my mail spool off of the local root disk and onto an xserve raid attached via FC. Is there any reason I can't:
stop mail service
rsync /var/spool/imap /Newvolume/var/spool/imap/
rsync /var/imap /Newvolume/var/imap/
mv /var/spool/imap /var/spool/imap.OLD
mv /var/imap /var/imap.OLD
ln -s /Newvolume/var/spool/imap /var/spool/imap
ln -s /Newvolume/var/imap /var/imap
start mail services
I suppose I could just change the path to the store in the mail config GUI also, right? Is any single way better than the other?
Thanks!

Just change the paths in the GUI.
Make sure you copy the db and imap directories with permissions intact.
Just to play it safe, you might want to run a mailbfr -b (to backup) then after copying data run mailbfr -o to set permissions.
sudo -s
mailbfr -b /Volumes/Drive/path
serveradmin stop mail
ditto /var/spool/imap /Volumes/Drive/path/mail.data/imap
ditto /var/imap /Volumes/Drive/path/mail.data/db
Enter new paths in ServerAdmin, Save.
mailbfr -o (mail service will start automatically after repairing permissions)
I left the old mail stores in place, so you can revert easily if a problem occurs. Later, delete the original db and imap directories.
Jeff

Similar Messages

  • OWA can't be accessed after moving data files to new volume

    SBS 2008  Exchange 2007
    Used the Move Files wizard in SBS Console to move Exchange files off of system drive to a storage drive.  Wizard said move was successful.  Opend Exchange management Console and verified path to files under Server/Mailbox.
    I get this error and the details when trying to access OWA. Server and user names have been changed to protect the innocent.  :)
    Can anyone offer a suggestion or solution?
    Outlook Web Access could not connect to Microsoft Exchange. If the
    problem continues, contact technical support for your
    organization.
     error details
    Show details
    Request
    Url: https://remote.contoso.com:443/owa/default.aspx
    Exception
    Exception
    type: Microsoft.Exchange.Data.Storage.ConnectionFailedTransientException
    Exception
    message: Cannot open mailbox /o=First
    Organization/ou=Exchange Administrative Group
    (FYDIBOHF23SPDLT)/cn=Recipients/cn=JohnDoe.
    Call stack
    Microsoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String
    serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid,
    Object identity, ConnectFlag connectFlag, OpenStoreFlag openStoreFlag,
    CultureInfo cultureInfo, String clientInfoString, Boolean secondTry)
    Microsoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String
    serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid,
    Object identity, ConnectFlag connectFlag, OpenStoreFlag openStoreFlag,
    CultureInfo cultureInfo, String clientInfoString, Boolean secondTry)
    Microsoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String
    serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid,
    Object identity, ConnectFlag connectFlag, OpenStoreFlag openStoreFlag,
    CultureInfo cultureInfo, String clientInfoString)
    Microsoft.Exchange.Data.Storage.MailboxSession.Initialize(LogonType
    logonType, ExchangePrincipal owner, DelegateLogonUser delegateUser, Object
    identity, OpenMailboxSessionFlags flags)
    Microsoft.Exchange.Data.Storage.MailboxSession.CreateMailboxSession(LogonType
    logonType, ExchangePrincipal owner, DelegateLogonUser delegateUser, Object
    identity, OpenMailboxSessionFlags flags, CultureInfo cultureInfo, String
    clientInfoString)
    Microsoft.Exchange.Data.Storage.MailboxSession.Open(ExchangePrincipal
    mailboxOwner, WindowsPrincipal authenticatedUser, CultureInfo cultureInfo,
    String clientInfoString)
    Microsoft.Exchange.Clients.Owa.Core.OwaWindowsIdentity.CreateMailboxSession(ExchangePrincipal
    exchangePrincipal, CultureInfo cultureInfo)
    Microsoft.Exchange.Clients.Owa.Core.UserContext.Load(OwaContext
    owaContext)
    Microsoft.Exchange.Clients.Owa.Core.RequestDispatcher.CreateUserContext(OwaContext
    owaContext, UserContextKey userContextKey, UserContext& userContext)
    Microsoft.Exchange.Clients.Owa.Core.RequestDispatcher.PrepareRequestWithoutSession(OwaContext
    owaContext, UserContextCookie userContextCookie)
    Microsoft.Exchange.Clients.Owa.Core.RequestDispatcher.InternalDispatchRequest(OwaContext
    owaContext)
    Microsoft.Exchange.Clients.Owa.Core.RequestDispatcher.DispatchRequest(OwaContext
    owaContext)
    System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
    completedSynchronously)
    Inner Exception
    Exception type: Microsoft.Mapi.MapiExceptionLogonFailed
    Exception
    message: MapiExceptionLogonFailed: Unable to open
    message store. (hr=0x80040111, ec=-2147221231) Diagnostic context: Lid: 18969
    EcDoRpcExt2 called [length=981] Lid: 27161 EcDoRpcExt2 returned
    [ec=0x0][length=132][latency=15] Lid: 23226 --- ROP Parse Start --- Lid: 27962
    ROP: ropLogon [254] Lid: 17082 ROP Error: 0x80040111 Lid: 26937 Lid: 21921
    StoreEc: 0x80040111 Lid: 27962 ROP: ropExtendedError [250] Lid: 1494 ---- Remote
    Context Beg ---- Lid: 26426 ROP: ropLogon [254] Lid: 22787 Error: 0x0 Lid: 13032
    StoreEc: 0x8004010F Lid: 59409 Lid: 45073 Lid: 11173 StoreEc: 0x80040111 Lid:
    22970 Lid: 8620 StoreEc: 0x80040111 Lid: 1750 ---- Remote Context End ---- Lid:
    26849 Lid: 21817 ROP Failure: 0x80040111 Lid: 26297 Lid: 16585 StoreEc:
    0x80040111 Lid: 32441 Lid: 1706 StoreEc: 0x80040111 Lid: 24761 Lid: 20665
    StoreEc: 0x80040111 Lid: 25785 Lid: 29881 StoreEc:
    0x80040111
    Call stack
    Microsoft.Mapi.MapiExceptionHelper.ThrowIfError(String message,
    Int32 hresult, Int32 ec, DiagnosticContext diagCtx)
    Microsoft.Mapi.ExRpcConnection.OpenMsgStore(OpenStoreFlag
    storeFlags, String mailboxDn, Guid mailboxGuid, Guid mdbGuid, MapiStore
    msgStorePrivate, String& correctServerDn, ClientIdentityInfo
    clientIdentityAs, String userDnAs, String applicationId, CultureInfo
    cultureInfo)
    Microsoft.Mapi.ConnectionCache.OpenMapiStore(String mailboxDn, Guid
    mailboxGuid, Guid mdbGuid, ClientIdentityInfo clientIdentity, String userDnAs,
    OpenStoreFlag openStoreFlags, CultureInfo cultureInfo, String applicationId)
    Microsoft.Mapi.ConnectionCache.OpenMailbox(String mailboxDn, Guid
    mailboxGuid, Guid mdbGuid, WindowsIdentity windowsIdentityAs, String userDnAs,
    OpenStoreFlag openStoreFlags, CultureInfo cultureInfo, String applicationId)
    Microsoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String
    serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid,
    Object identity, ConnectFlag connectFlag, OpenStoreFlag openStoreFlag,
    CultureInfo cultureInfo, String clientInfoString, Boolean secondTry)

    Hi Esyxx,
    Based on your description, I understand that you move Exchange Server Data to a new volume. And then encounter
    issue when access OWA. If anything I misunderstand, please don’t hesitate to let me know.
    à
    I get this error and the details when trying to access OWA.
    Would you please let me know whether all users encounter the same issue? Or just some specific users? After
    moving, did you
    manually mount the mailbox database? If access mailbox via Outlook, will still encounter any issue?
    In addition, please run Exchange BPA and
    SBS BPA, then fix all that they can find and monitor the result.
    By the way, I noticed that you post screenshot here. However, pictures seems to be damaged. Would you please
    provide the screenshot again or upload it in
    OneDrive, then post link here? Thanks for your understanding.
    Regarding to moving Exchange Server Data, please also refer to following article and check if can help you.
    Move the Exchange Server Data
    Hope this helps.
    Best regards,
    Justin Gu

  • Moving Mail to a new computer

    I am getting a new computer and would like to move mail and its settings, folders, etc. without moving all of my programs and users settings. I would like to end up with a clean install except for mail. Is that possible with migration assistant or is there another way such as importing archieves for each mailbox folder. Is there a pst file that contains the rules, and account info?
    Thanks for any suggestions.

    waldhaus1 wrote:
    I am not sure why that is relevant but they are:comcast.net, mcn.org, gmail.com, yahoo.com, earthlink.net, and mac.com. The gmail is being accessed as an imap server. Comcast won't do imap. I am not sure about the others.
    Thanks
    It's relevant because all Apple mail accounts are Imap, which would have made it easy, but ... all the Imap accounts do not need to be transferred, POP accounts (comcast, earthlink and yahoo, maybe) will need to be exported from wherever they are and reimported.
    PST files are Outlook only, if you are using Outlook you could buy emailchemy and let it do this for you.

  • Hotmail: moving mail to a new folder, it just disappears????

    Hi All         
    Hope you can Help me!!!!
    I have just set up a new Hotmail account through Exchange on my iphone4. Through Hotmail on a browser i have made folders for various email to go into.
    However when i move them they just disappear??, the folder is empty.
    But if you check the folders through a browser the emails are in the correct folders?
    Any ideas??
    I have deleted the account from my phone, and added it again, no joy!!!
    Can anyone help me?
    Thanks in advance
    Alan

    waldhaus1 wrote:
    I am not sure why that is relevant but they are:comcast.net, mcn.org, gmail.com, yahoo.com, earthlink.net, and mac.com. The gmail is being accessed as an imap server. Comcast won't do imap. I am not sure about the others.
    Thanks
    It's relevant because all Apple mail accounts are Imap, which would have made it easy, but ... all the Imap accounts do not need to be transferred, POP accounts (comcast, earthlink and yahoo, maybe) will need to be exported from wherever they are and reimported.
    PST files are Outlook only, if you are using Outlook you could buy emailchemy and let it do this for you.

  • Moving mail to a new server

    In my case, it is somewhat simple because I have only one account. But, in general, how do you move mail from one server to another? I have tons of messages still in the imap server that somehow need to get other to the new server.
    The other sticking point is I have only one license. So I can't run both imap servers at the same time. In fact, I pretty much have to shutdown the current server just to work on the new server.
    Thanks

    hi - i just did this - found a script called imapsync (http://www.linux-france.org/prj/imapsync/). you can run it using this bash script:
    #!/bin/bash
    USER=$1
    PASSWORD=$2
    1MAILSERVER="";
    2MAILSERVER="";
    /usr/bin/imapsync "Junk|Deleted\ Messages" --host1 $1MAILSERVER mail server> --user1 $USER --password1 $PASSWORD --host2 $2MAILSERVER --user2 $USER --password2 $PASSWORD --syncinternaldates

  • Moving Mail to a New Mac

    I'm sure this has been answered a bunch of times, so if someone could point me to the appropriate thread I'd appreciate it.
    My hard drive in my laptop is slowly dying (the dreaded "clicks of death"). I'm about to replace it and want to back everything up to an external and then bring it back on to the new HD.
    The last time I did this, everything came over fine except for my Mail. I tried reimporting the mailboxes and all the mail headers appeared but when I clicked on a message it was blank.
    What is the best way when faced with replacing a HD to move and then reconnect your Mail app?
    Many thanks.

    You'll find the details in KB 301239, How to back up and restore your important Mac OS X 10.4 files.

  • Tranferring Mail settings and data to new volume?

    My old 10.4.9 system got damaged so I reinstalled on a second internal HD array. How do I bring all my Mail stuff (spam filter, mailboxes, accounts, attachments, etc.) over to the new volume? Can I just copy them from preferences into analogous locations on the new volume? If so, what other things do I need to worry about aside from preferences?
    Thanks for any help.

    Hello Thomas.
    With the Mail.app quit on your volume, place a copy of the Mail folder which was located at Home > Library > Mail in the same location on your new volume and Home > Library.
    Place a copy of the com.apple.mail.plist file which was located at Home > Library > Preferences > com.apple.mail.plist in the same location on your volume.
    Launch Mail and it should be completely restored.

  • Moving mail to new mac

    I used migration assistant to move files to new mac.  Most moved just fine.  Mail appears to have moved, but there are no mailboxes showing and the mail app is empty of any mail.
    Support suggested I repair the keychain, copy mail, and copy preferences.  All seemed straight forward, except the com.apple.mail.plist.lockfile had zero bytes.  There was no com.apple.mail.plist , just the one with the .lockfile extension and no contents. 
    Is there any way I can unlock and rebuild that file or otherwise recover my mail on the new mac?
    help

    There is a way to do this manually by digging for the mbox files in your ~/Library/Mail/* folders, copying them to your new machine, and importing the data into mail. 
    Unless you've done something like this before, you may want to wait for someone with a less technical solution before trying my option.  But you should know that it's possible, even if it's not easy.
    If you want to give it a shot, let me know and I'll write up some steps to follow.  Be forewarned, though, that it will require commands in terminal...

  • Problem moving Mail from old to new iMac

    I followed instructions about moving Mail--with all mail folders and old emails intact--from my old PowerPC iMac to my new Intel 3.20 MHz iMac. I copied the folder "Mail" inside my user library and the "plist" file from Preferences onto my thumb drive from the old computer, then uploaded these files onto the new one. I was able to easily replace the "plist" file with the onscreen prompt (Do you want to replace?), but the Mail folder went into the Library folder as a duplicate only. So, I tried to delete the original and unused Mail folder, but everytime I sent to the trash and empty the trash, it magically reappears, so that my old emails don't show up when I open the Mail program. I know the files are there--but how do I make my new iMac recognize them and how do I delete the empty Mail folder that was on the new computer originally to avoid confusion? Thanks for any advice you can give.

    You may need to rename the copy to be simply Mail. This is best done having first removed any Mail folder on the new Mac, but this should work as well.
    Ernie

  • Moving Mail, Address Book and Keychains from Old Computer to New Computer

    My issue: Moving mail, address book and keychains from Panther (old machine) to Leopard (new machine). Old machine (500mh G4 power pc) will not connect directly via firewire to new machine (iMac intel). So, I have to move the files manually via a firewire hard drive.
    I am looking for a document that will tell me exactly which files to move. Can someone please help me find this document? Thank you. Dale
    P.S. I have no issues with installing Leopard. I only need to move the mail, address book and keychains from old to new machine. No .mac account is available.

    for address book: go to your old mac, launch ab, and go to file>export and export your contacts as vcards, select all cards before that, then bring that export file to the new mac, and launch ab there, then go to file>import as vcards and you should be set as far as contacts are, but not as far as groups if you have extensive groups. that would be the safe option. the other option is to go to homefolder/library/application support/address book and move that folder to the new mac. the only question i have is... is the database structure and files the same between panther and leopard, which is why i suggest the first option of import/export of vcards.
    for mail, in your old panther go to homefolder/library/mail and move that mail folder to the new mac. make a copy of that folder, then move one copy to the same location in the new mac.
    for keychain, in your old panther go to homefolder/library/keychain, you want to bring the file that is in that folder to your new mac. make a copy of that folder, then move one copy to the same location in the new mac.
    once that is done, you may have to do some more steps with mail, once you launch mail, such as importing mailboxes. let me know if that is the case.
    hope this helps

  • "song" or "movie" not found... moved library to new volume..

    I guess I know just enough to be dangerous... I was running out of space on my Macintosh HD volume, so bought a new drive for my MacPro - moved my iTunes folder over to the new volume, when into the iTunes prefs, advanced and changed the location of the file (and checked the "keep organized" box) -- that seemed to work. So I deleted the original iTunes folder on the first volume. (I do have a backup on Time Machine.)
    But when I clicked on music files, video files, etc. I now get a "file not found, would you like to located it?" kind of box. I have done this for some of my movies... but I have tons of music -- am I going to have to do this for EVERY file to fix it? Or is there another way to do it?
    On searching for support, I realized I'd ALMOST done it correctly - I should have not copied the file, just changed the location and hit "Consolidate" etc. But since I have already messed up a little - is there a way to fix my screw up without having to restore and start all over again?
    Thanks in advance and kind regards!!
    Ben

    RS
    How did you go about this move?
    The correct way to do it is
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you still have the original library it might be worth trying again.
    Regards
    TD

  • Mail.app is COPYING instead of MOVING mail to folders (using IMAP)

    Hi there,
    I hope I can keep this simple, I'll go by the steps leading to my propblem:
    1.
    I've been using POP3 mail for a long time, mainly with Outlook on PC's and now that I have made the godly switch to Apple I've been using Mail.app for a couple months. I host my domains at GoDaddy.com and they offer decent mail servers including webmail, etc. Since I'm checking mail on multiple platforms (iPhone, iPad, MacBook and webmail) I decided to start using IMAP instead of POP3. GoDaddy set that up form me in seconds and I got IMAP working on Mail.app in no time (yes, I deleted the old POP accounts and started from zero creating new IMAP accounts).
    2.
    I've learned to keep mail filing easy so I have just two folders: "Inbox" and "archive". My inbox is... well... my inbox. If a mail is in my inbox it's because it's either a brand new unread mail or it is read and I'm keeping it there because action needs to be take upon it. Once action has been taken and I want to save the mail for future reference I just archive it.  If I want to retreive mail I just make a search across all folders. Of course I also have the trash folder, sent items, junk, etc.
    3. THE PROBLEM
    As seen on the subject line, Mail.app is COPYING instead of MOVING mail to the IMAP server based folders. So when I click on archive, or manualy drag a mail to the "archive" folder it places a copy there but the email is still visible in the inbox on all my devices. I have tried creating other IMAP folders and giving them different names such as "saved mail" or "old mail" and still I get the same problem. To prove the problem is on the Mail.app side I loged into my webmail and moved messages to the "archive" folder from there, and guess what... it worked. The messages did not show up in the inbox of any of my devices any more.
    PLEASE PLEASE HELP.... I'm talking about three email addresses which receive tons of business related mail every day... I'm flooded in mail.
    THANKS in advance for your help!
    Kinds regards,
    Willem

    Thanks wjosten,
    I had already tried that. I even created a keyboard shortcut to do so. It doesn't work! As soon as I close down Mail.app and start it up again, the messages are back in the inbox.

  • How do I move databases to a new volume with the same name?

    When I first set up Snow Leopard Server, I chose a different volume to keep the databases such as mail, iCal, etc., during the setup program.
    I'm running out of space on that volume, so I installed a new hard drive with the same volume name and copied all the files over to it, but when I restarted the server I started getting error messages and no one could send mail. I'm assuming it's a permissions thing.
    So I do I move everything to a new volume?

    - I logged out as Administrator, and logged back in as Root.
    - Disconnected the services in Server Admin.
    - Copied the ServiceData folder from old volume "Storage" to new volume "Storage".
    - Unmounted old volume "Storage".
    - Restarted all services.
    Dec 5 12:58:49 companyname dovecot[65]: IMAP(*): stat(/Volumes/Storage/ServiceData/Mail/17D8D54B-0529-4BD6-8467-757C3EA7C75B/tmp ) failed: Permission denied (euid=1025(username) egid=20(staff) UNIX perms seem ok, ACL problem?)
    Mail, Web, iChat and Address Book servers do not work.
    What do I do now?

  • I am having trouble moving mail and and firefox profiles to Macbook from Powerbook

    I just inherited a cool late 2008 aluminum Macbook with Lion.  But I can't seem to get my Mail to move over or my Firefox preferences.  I tried the steps for moving mail:  copying and pasting the keychain, mail and mail preferences files.  Nothing happened. I've started now to set up the old way (ie setting up the accounts as if they were new) but know this is not a good idea.
    Trying to get something to work, I tried to move over my Firefox profile by copying the file into the same place on the new computer as old. Nothing.
    In both Mail and Firefox, I can see the new files, but they aren't being read. 
    Stupidly, I did not copy the old files before I pasted the new.
    Should I just start over and reload Lion??
    I'm so frustrated!
    Thanks for any help.
    Anne

    I also see that it seems to be moving all of the mail over from my gmail account.  I didn't mean to move everything out of gmail to this computer!  Now what do I do??

  • Should cancelled mailbox moves result in any moved mail data removed from target server?

    I was moving mailboxes from 1 DB to another. 3 out of 120 were left running for 12 hours; they were the biggest ones and it was very slow to process the items. There were also reports of slowness on the server so I had no choice but to cancel the moves.
    My question is should cancelled mailbox moves result in any moved mail data being removed from the target database? It doesn't appear that my disk as increased in space again so I'm wondering if it's there as whitespace maybe? There is an event logged to say
    the mailbox has been deleted from the target.
    Would appreciate if someone can clear this up and possibly explain exactly what occurs during this type of scenario.
    Thanks.

    Hi,
    Thank you for your kindly remind.
    In Exchange 2000, 2003 and 2007 mailboxes become unavailable during movement, when a mailbox move takes place, the mailbox isn't actually moved, it's just copied to the destination location. Once that copy has finished, AD is updated to point to the new location
    and the old mailbox is deleted from the source EDB file.
    The most different between Exchange 2010 and legacy version in move mailbox is that allows end-users to be online in their email accounts. On completing the move users just needs to reopen their Outlook clients.
    Mailbox Move Requests are a new feature set of Exchange 2010 and requires running a series of Cmdlets to perform asynchronous online mailbox moves with the help of a service agent called Mailbox Replication Service (MRS). MRS is available on all Exchange 2010
    Client Access Servers.
    Best Regards,
    Allen Wang

Maybe you are looking for

  • One Open Directory server for multiple businesses?

    Hi all, Is it possible to have one Mac OS X server seen by client computers through different domain names? See, I have one server now, with name: server01.it.lan As we are managing three different companies, I'd like the users working for one partic

  • MacBook Pro Late 2011 Model - Does not work after Yosemite update

    i recently updated my OS to Yosemite and had in problems for two days but yesterday it ceased to work in the middle of printing a document. I need my laptop back up and running since I have school exams soon and vital information and files are in thi

  • Output Message from Purchasing Value Key

    Hi All, Can anyone tell me how to configure the message and the output parameters for the time defined with the Purchasing Value Keys? What are the steps needed to create the message and to add an output? Any help would be greatly appreciated and ofc

  • Weird hyphenation problem

    I'm using InDesign CS3 5.0.4 on a MacBook running OS10.5.8 I have an InDesign document that I need to convert to Microsoft Word. Before copying the InDesign text I turn off hyphenation. However, when I paste the text into the Word document, all kinds

  • Human Workflow UI in ApEX

    The company I work for needs to incorporate a BPEL work flow into an Application Express app. We can easily call the web service and initiate the work flow but what we cannot manage to do is build a simple UI for the Human Action piece. I want to hav