Repairing the mail database

Hi all,
There are indications on my server that the mail database should probably be repaired. Is it safe to simply stop the mail service and hit the Repair button in Server Admin->Mail->Maintenance->Database? Should a database be repaired on a regular basis as preventative maintenance?
I'm not an IT person. I work for a startup and I drew the short straw one day (no offense to IT people). I'm terrified of hitting the Repair button for fear of losing years worth of important email.
This morning, my server was reporting "DBERROR db4: Logging region out of memory" over and over again. I had a hardware upgrade scheduled anyway, so the server was shut down and new RAM installed.
After restarting the server, IMAP was crashing every minute with "signaled to death by 11". I noticed it crashed each time one particular user accessed mail so I reconstructed that user's mailbox and since then, IMAP crashed three times but has since run smoothly for over an hour.
I have never tried repairing the mail database since the server was installed in 2005.
I appreciate your thoughts!
- Tim
G5 Xserve, Mac OS X 10.4.11

Tim,
the Cyrus database should only be reconstructed if needed and usually is quite stable.
"DBERROR db4: Logging region out of memory"
This is not a RAM issue. It means the underlying Berkeley DB has not enough cache memory assigned.
Can happen because of a broken database or because you have many many users. Since your server has been running for a long time fine, I would assume it was because of the broken db.
The reconstruct button in Server Admin, usually doesn't help. You are better off using mailbfr (available free here: http://osx.topicdesk.com/mailbfr/ )
Use mailbfr -m username to fix single users.
If your problems persist, you may need to do a full reconstruction of the Cyrus db (which will cause the loss of read/unread flags).
If in doubt, post more log entries related to the Cyrus DB errors.
HTH,
Alex

Similar Messages

  • Error while sending the mail( Database error for ADDR_PERS_COMP_COMM_GE)

    Hello guys,
    I am facing the error    " Database error for <ADDR_PERS_COMP_COMM_GET> <0> " as a pop-up message.
    below is my program.
    types: BEGIN OF t_p0002,
            pernr type PERSNO,       "Personnel number
            nachn TYPE PAD_NACHN,    "Last Name
            VORNA TYPE PAD_VORNA,    "First Name
            gbdat TYPE gbdat,        "Date of Birth
          END OF t_p0002.
    *******************Data of an object which can be changed**************************************
    data   S_maildata type SODOCCHGI1.
    *******************Text field length 255: texts***********************************************
    data : IT_MAILTXT1 type table of SOLISTI1 ,  "Internal table will contain texts of mail header
           WA_MAILTXT1 TYPE SOLISTI1,
           IT_MAILTXT2 type table of SOLISTI1 ,  "Internal table will contain texts of contents in the mail
           WA_MAILTXT2 TYPE SOLISTI1.
    *******************Structure of the API Recipient List*****************************************
    data : IT_MAILREC type table of SOMLRECI1,
           WA_MAILREC TYPE SOMLRECI1.
    DATA : it_pa0002 TYPE TABLE OF t_p0002,
           wa_pa0002 type t_p0002.
    data  Header_text type c LENGTH 15.
    CONSTANTS  content_text type c LENGTH 35 VALUE 'Tomorrow is the birthday of'.
    *******************Event start of selection***************************************************
    start-of-selection.
      PERFORM get_birthdate.   " will give birthday details
      PERFORM document_details. " will give text and mail details
    *&      Form  get_birthdate
          text : subroutine to get employee birthdate details
    form get_birthdate.
      data : l_date like sy-datum.
      refresh it_pa0002.
      l_date = sy-datum + 1.
      SELECT pernr nachn vorna gbdat
        from pa0002
        INTO TABLE it_pa0002
        where gbdat = '19650302'.
    ENDFORM.                    "get_birthdate
    *&      Form  document_details
          text : subroutine to get texts and mail details.
    FORM document_details.
      CLEAR: Header_text,
              wa_MAILREC.
      REFRESH  IT_MAILREC.
      S_maildata-obj_name = 'Birthday Reminder'.
      s_maildata-obj_descr = 'Birthday Reminder'.
      s_maildata-obj_langu = sy-langu.
      READ TABLE IT_MAILTXT1 INTO WA_MAILTXT1
      WITH KEY WA_MAILTXT1-line .
      WA_MAILTXT1-line = 'Birthday Reminder'.
      append WA_MAILTXT1 TO IT_MAILTXT1.
      CLEAR WA_MAILTXT1.
      LOOP at it_pa0002 INTO wa_pa0002.
        READ TABLE IT_MAILTXT2 INTO WA_MAILTXT2
         WITH KEY WA_MAILTXT2-line .
        CONCATENATE content_text ' ( ' wa_pa0002-pernr ' ) ' wa_pa0002-nachn wa_pa0002-vorna
        INTO  WA_MAILTXT2 SEPARATED BY ' '.
        append WA_MAILTXT2 TO IT_MAILTXT2.
        CLEAR WA_MAILTXT2.
        CLEAR wa_pa0002.
      ENDLOOP.
       LOOP AT IT_MAILREC INTO WA_MAILREC.
      WA_MAILREC-RECEIVER = 'Any mail id'.
      WA_MAILREC-rec_type = 'U'.
      append WA_MAILREC TO IT_MAILREC.
       ENDLOOP.
    ********************Function Mofule:To Send new Document*****************************************
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
      document_data = S_maildata
      DOCUMENT_TYPE = 'RAW'
      PUT_IN_OUTBOX = ' '
      COMMIT_WORK = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
      tables
      OBJECT_HEADER = IT_MAILTXT1
      OBJECT_CONTENT = IT_MAILTXT2
    CONTENTS_HEX =
    OBJECT_PARA =
    OBJECT_PARB =
      receivers = IT_MAILREC
       EXCEPTIONS
       TOO_MANY_RECEIVERS = 1
       DOCUMENT_NOT_SENT = 2
       DOCUMENT_TYPE_NOT_EXIST = 3
       OPERATION_NO_AUTHORIZATION = 4
       PARAMETER_ERROR = 5
       X_ERROR = 6
       ENQUEUE_ERROR = 7
       OTHERS = 8
      IF sy-subrc = 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "document_details
    After I pressed the exit button the program is getting terminated but still this mail is comming to sost transaction code.
    If I will comment the message code which is after sy-subrc the popup will not come and program will work without any interruption.
    Can anybody please solve this problem?

    Resolved

  • Aperture 3 does not work well since installing Mavericks. Constantly have to repair the library database. Any suggestions?

    Aperture 3.5.1 was working well enough for me in Mountain Lion, but it seems that switching to Mavericks has made it slower, made it crash frequently and also given me frequent messages that the database is corrupt and I need to rebuild the database library, which I have done multiple times. I also use Aperture for Photo Stream, and it is especially slow and problematic there. Any ideas? Should I just use iPhoto instead? I'm more familiar with the flow in Aperture and would need to learn how better to use iPhoto, so that would be a last resort for me.

    Aperture 3.5.1 was working well enough for me in Mountain Lion
    Aperture 3.5.1 is incompatible with Mt. Lion - you  must have had an earlier Aperture version running with Mt. Lion.
    also given me frequent messages that the database is corrupt and I need to rebuild the database library
    That message is prompted by the crashes. After a crash your library may need repairing.
    Aperture 3.5.1 was working well enough for me in Mountain Lion, but it seems that switching to Mavericks has made it slower, made it crash frequently
    Is all your software compatible with Mavericks? Plug-ins, external editors, preference panes, device drivers, video codecs? Did you install any other software, when you upgraded to Mavericks?
    Where is your Aperture library? On your system drive or external drive?
    Does Aperture also crash, if you launch it while holding down the Shift key?

  • Mail database repair

    I do a weekly repair of the mail database using the Server Admin tool but I am starting to see a build up of the quota used by a few accounts which can not be removed by the clients. They have received all their expected mail so I believe this to be mail which is not cleaned up by the "repair" command. Reconstruct of the individual account does not remove it either. I used to run repair manually from the terminal but have lost the UNIX commands. How do I do this for 10.5.8?

    You should ask this in the Mac OS X Server forum; specifically in the mail server area. This is the "client" forum and we speak Mail.app here, for the most part

  • How can I sync Mail database between MAC computers without using IMAP

    All, I know this has been asked several times in several forums but I wish to ask it again with a slight twist. The normal question is can I sync  Apple mail database (folders) between two MAC computers. The answer is always use IMAP, but unfortunately IMAP is limited on space to store historical emails. I keep mailboxes (on_my_mac) with thousands of emails and attachments that take up a massive amount of space, well beyond any IMAP server allowances. I keep these in order to search conversations that span over many months and sometimes years.
    I use GoodSync to sync my normal folders from my MAC Book Pro and my Mac Pro desktop so that I can have the same information (in real time) when working from home on my big machine or at the office using the laptop. This is great except I can not sync the email. I use Outlook 2011 but would prefer to use apple mail if I can sync the two computers (Sync'ing Outlook 2011 is even more impossible).
    I also do not want to start and stop my email clients to make this happen and worry about which MAC is running mail and what direction to copy the entire folder structure just to have to follow that up with a new re-build of the index.
    Has anyone came up with a viable solution this this problem. Also keep in mind the amount of data - Cloud based solutions are dependent on Internet connection speed (days of initial transfer time and hours to sync) and if I am on my laptop without internet connection, say on an airplane, I would be out of luck so I need the information local on each computer.
    Hopefully someone has some ideas, or maybe Apple can take a request for enhancement to Mail to support syncing multiple computers.

    I assume that this is a POP system then.
    There is no reliable method of syncing the Mail database between 2 Macs. Just how many Gigabytes of Mail do you have?

  • How do I rebuild mail database manually

    I am running Mac OS X version 10.2.8. I need to rebuild the mail database manually. I have done it in the past, but I have forgotten the exact command line operations. I know that new versions have apps that do it very easily, but a newer version is not an option right now. Could someone please help?
    Thanks
    Dan
    OS X Server   Mac OS X (10.2.x)  

    A search in the knowledgebase reveals:
    http://docs.info.apple.com/article.html?artnum=106889
    Jeff

  • Accessing one mail database across multiple macs

    I am not too familiar with the mac yet, I'm getting there, but I have an issue I can't figure out...
    I convinced my parents a long time ago to get macs, imac and macbook pro, and both have windows on them, and that's what they're using. I have imposed a deadline for them of tomorrow to finally make the switch, and remove the windows installation. They're using Outlook for their email, and I want to know if it's possible to
    1) Import outlook pst into Mail without going through entourage first
    2) Access the mail database on the imac on the macbook pro.
    Thanks in advance...

    ZooCrewMan,
    I may be wrong about their support of IMAP. I just checked the Earthlink support site myself, and I cannot find anything about it.
    Mail does not store in a "database," but rather stores each message as a separate text file. Attachments are stored separately, but linked to the associated message. This is handy for several reasons. One, it avoids the problems associated with monolithic database files. It also aids in the backup process, making each incremental backup that much smaller. Finally, it is instrumental in the ability to index and search all messages by content.
    It is not possible to "point" Mail on one machine to the stored emails on another, at least not without serious advanced work and headaches, and it is not necessary. By telling Mail on each machine to use the same address, servers, etc., but to leave the messages on the server until they are either moved to a local email folder or deleted, the results you need will be achieved. In this configuration, Mail essentially works as an IMAP client, only using the POP protocol. When Mail is launched, it downloads all new messages from the server, but leaves them there. The server is told to remove the message only when that message is deleted and/or moved to another local folder.
    When Mail is launched on the second machine, the same new messages are there on the server for downloading, minus those already deleted by the first machine. The only thing that is not duplicated on both is "sent" mail.
    Scott

  • I want to recover the Deleted Database

    We have an accidentally deleted the database, there is no recent backup file for past 5 months. I want to recover the deleted database. Please give an idea/Suggestions to recover the database. And also we tried some third party tools like kernal,SQL Recovery,Steller
    Phenix and those tools are repairing the corrupted database,but it could not find the deleted ".mdf" file for the database. Please give a best steps/suggestions to recover the database.

    Is there any option to recover the ".mdf" and ".ldf" files  of deleted database by using file recovery softwares
    You can try some of the Windows "undelete" tools, but there is no guarantee it will work or that the database files will be in a valid state afterwards.
    The only reliable way is to restore a backup ... which you don't have.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • 10.3 mail database backup

    I've been trying to find a good mail backup solution but couldn't. As far as I can see, the mail database resides in /private/var/spool/ but is that all? shall I just shutdown the mail service and copy those directories somewhere as a backup? What about user information? I mean, if I just backup the mail db, but what if I have to reinstall the whole server, how would I map the users to their mail storage?
    If anyone can point me to the right direction, it'd be great! Thanks

    get mailbfr
    http://osx.topicdesk.com

  • I just bought a new iMac and when transferring the contents of my previous mac the mail folders were all empty.  How do I get back my saved emails?

    I just bought a new iMac with OS X Mavericks, and when I transferred my data from my old iMac with Snow Leopard, all my mailboxes appeared, but they were empty.  How can I get back my saved emails?

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Mail/V2/MailData
    Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens by pressing command-V, then press return.
    A folder window will open. Inside it there should be files with names as follows:
    Envelope Index
    ExternalUpdates.storedata
    Move those files to the Desktop, leaving the window open. Other files in the folder may have longer names that begin as above. Move those files, if any, to the Trash.
    Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is damaged and that Mail has to quit. Click OK. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.
    Test. If Mail now works as expected, you can delete the files you moved to the Desktop. Otherwise, post your results.

  • Mail database error and unknown folders - what are they?

    Hi - Forgive an elementary question: I administer a small office network, but am NOT an IT expert!
    We've been running OS X 10.5. server for quite some time and are now on 10.5.8 with client workstations all running 10.6.1. We've had a problem with a corrupt cyrus database reporting (amongst other things):-
    "DBERROR db4: Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment"
    This is well covered elsewhere, but despite downloading and running mailbfr I have not been able to get rid of the problem. However, my question is this: whilst rooting around the mail database I have found the following folders:
    var/spool/imap/^-^_-+^_-+^_-^-obscure
    var/spool/imap/^_-bingey
    var/spool/imap/^_-delegating
    var/spool/imap/^_-moustache
    var/spool/imap/^_-obscure
    var/spool/imap/^_-plebes
    var/spool/imap/^_-reinserting
    Each of these folders has a cyrus.cache, cyrus.header and cyrus.index file inside. I can find no relevant search results when I check these folder names out with an internet search, so I'm wondering whether these folders should even be there? Have they been installed covertly, and if so can I remove them without further damaging our database?
    Any help would be appreciated.
    Thanks

    http://discussions.apple.com/thread.jspa?messageID=4275025

  • Exchange 2010 - Dismount Mail Database on a DAG

    Hi All,
    I'm experiencing an issue in which 2 Mail Databases out of 3 within a DAG are not truncating the log files after a full backup, so for those 2 I currently have Circular Logging turned on.
    I spoke with an outside Exchange source that recommended trying to dismount the Mail Databases and bounce the Information Store on both Mailbox Servers.  To give it a "fresh start."
    Here's what was recommended:
    Get-MailboxDatabase -Server mbx* | dismount-Database
    get-service -computername mbx1 msexchangeIS | restart-service
    get-service -computername mbx2 msexchangeIS | restart-service
    Get-MailboxDatabase -Server mbx* | mount-Database
    I have to be honest.  I've never really had to dismount the Mail Databases in a DAG before.  Has anyone else - if so, does the above seem okay to you?
    Thanks,
    Mr Mister

    Hi,
    Agree with Andy. You can dismount a database in a mailbox server, a member of a DAG, which is similar as what you do for a mailbox server that is not a DAG member.
    Full and Incremental backups will truncate the transaction log files, please make sure your backup is one of these two types.
    If a server hosting the data being backed up is a member of a DAG, and this server hosts both active and passive database copies, we must disable the Microsoft Exchange Replication service VSS writer.
    So, please check if you have disabled the Exchange Replication VSS writer.
    Besides, to narrow down the issue that the transaction log files were not truncated after backup, I recommend you check the application log to see if there is any related events.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • After upgrading to Lion, I went to open Mail and received the message that it needed to upgrade my Mail database - this may take a few minutes. The bar shows it is about 1/5 along and has been there for over 10 hours. Help!

    After upgrading to Lion, I went to open Mail and received the message that it needed to upgrade my Mail database - this may take a few minutes. The bar shows it is about 1/5 along and has been there for over 10 hours.
    I tried quitting and starting again but it just jumps back to the same spot.

    It is quite large, but I have tried two of the fixes suggested and things now seem to be moving along.
    (I was unable to seach properly before which is why I posted the question - it was a bit of a panic)

  • In Lync, if a call is not answered, and does not go to voice mail, is anything recorded in the Lync database ?

    We are using Lync 2010. This question relates to the LCSCDR database.
    In Lync, if a call is not answered, and does not go to voice mail, is anything recorded in the Lync database ? Are there any options to make Lync store a record of unanswered calls ?
    Is there a way to tell from the LYnc database if a call was answered by a person or went to voice mail ?
    I cannot see anything in the sessiondetails table to indicate any of the above.
    Any help much appreciated.

    Hello,
    You shouldn't install Shockwave Player unless you know for a fact that you need it.
    # From the following page, save the uninstaller, the full installer for Netscape, and the full installer for Internet Explorer if you also need it in that browser.
    #* http://www.adobe.com/shockwave/download/alternates/#sp
    # Exit all applications.
    # Run the uninstaller.
    # Restart your computer.
    # Run the installer for Netscape.
    # Run the installer for Internet Explorer if you downloaded it.
    This forum doesn't support BBCode like <nowiki>[IMG]</nowiki> tags. You can simply post the plain links to the images. In replies to the thread, you have the option to attach images to your post.
    * https://support.mozilla.org/kb/markup-chart

  • How to repair the database used by Oracle Identity Manager 11g

    Hi friends,
    I have a question about Oracle Identity Manager 11g.
    As I can repair the database used by Oracle Identity Manager 11g
    Thanks

    I think you can do if the repaired database is replica of old one.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/repair.htm

Maybe you are looking for

  • Example program Hiearchical alv report

    Hi,        can anyone send me hiearchical alv report example. i m new to learn that plzz help me out. Thanks, satish

  • Date and time stamp on dump & log file using EXPDP in HP-UX

    Hi All, Can someone help me with the below issue O.S Version     HP-UX B.11.31 U ia64 Oracle DB Version     11.2.0.3.0 , Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production #!/usr/local/bin/bash ORACLE_HOME=/u01/app/oracle/pr

  • Reader does not remember the last page! Disaster!

    Critical bug detected on: Nokia Lumia 620 Adobe Reader v10.3 Description: Try open any PDF file, then move pages, exit from reader, then back again in reader. Reader must remember last page! Please fix this, because it's very important feature in any

  • Integrated Planning - File upload - Locks issue

    Hi When we try to use file upload feature (planing function- how to guide) , it gives us error that says " Data is locked by user .....". We checked and we had one user in the layout so system had lock entry in SM12 transaction. Is there any way - we

  • PS/2 Mouse for Pavilion M9340f

    I have a Pavilion M9340f and the mouse that came with it is a 5188-6230 Rev-B and it has a PS/2 Plug. Will a 5188-6229 mouse work fine with this computer? This question was solved. View Solution.