Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: What to clean on a Zimbra mail server?

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    61
    Rep Power
    7

    Default What to clean on a Zimbra mail server?

    Hi all,

    Hope this is the right place to post this question. Today I ran the df -h command on my mail server box and the result was showing that the root directory is 65% full.

    Then i looked for large files and looks like the size of /var/spool/clientmqueue is 58G.

    Since the root directory has been filling up almost 1% per day, I was wondering what files/directories I can delete to empty up the space on this server.

    I will appreciate your help

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by tezarin View Post
    Then i looked for large files and looks like the size of /var/spool/clientmqueue is 58G.
    The Zimbra files are all stored in the /opt/zimbra directory structure, you don't (you shouldn't) have that on your root filesystem do you?

    For further information on that directory take a look at some of these answers: +"/var/spool/clientmqueue" +rhel - Yahoo! Search Results
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Dec 2008
    Posts
    61
    Rep Power
    7

    Default

    Hi phoenix,

    You're right, they are stored there. What I was trying to say was the df -h command on my mail server box returns 65% and it's increasing everyday:

    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
                          901G  552G  303G  65% /
    /dev/sda1              99M   33M   62M  35% /boot
    tmpfs                 3.9G     0  3.9G   0% /dev/shm
    Can I do something to clean it up? i.e. Removing the content of /var/spool/clientmqueue or something?

    Thanks

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by tezarin View Post
    Can I do something to clean it up? i.e. Removing the content of /var/spool/clientmqueue or something?
    I've given you the answer to that question in the link in my previous post.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Dec 2008
    Posts
    61
    Rep Power
    7

    Default

    Thanks phoenix,

    I did some research before posting here and have seen some posts which advise me to just remove the content of that directory, i.e. https://forums.oracle.com/forums/thr...sageID=8456547
    but is it safe? Would this be something that can be done on a *ZImbra* mail server?

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by tezarin View Post
    but is it safe? Would this be something that can be done on a *ZImbra* mail server?
    There should be no reason why you can't remove then on a Zimbra server, as I've already mentioned the zcs files are all in /opt/zimbra. I suppose the question you need to answer is 'why is that directory so large'.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Join Date
    Dec 2008
    Posts
    61
    Rep Power
    7

    Default

    Thank you Bill, appreciate your help.

    I haven't installed anything on that box, I inherited it from the previous person who was in charge of the box. Have been monitoring the size of that directory and have been noticing the size of that directory has been increasing.

    To me it looks like the mails are being sent internally, as I opened one of the files inside that directory and ths is what the content looks like:

    Code:
    [root@mail clientmqueue]# vi qfpBG9m0Cb029299
    V8
    T1324028880
    K1324036332
    N1
    P30601
    MDeferred: Connection refused by [127.0.0.1]
    Fbs
    $_root@localhost
    ${daemon_flags}c u
    Sroot
    Aroot@mail.domainname.com
    MDeferred: Connection refused by [127.0.0.1]
    C:root
    rRFC822; root@mail.domainname.com
    RPFD:root
    H?P?Return-Path: <<81>g>
    H??Received: (from root@localhost)
            by mail.domainname.com (8.13.8/8.13.8/Submit) id pBG9m0Cb029299;
            Fri, 16 Dec 2011 04:48:00 -0500
    H?D?Date: Fri, 16 Dec 2011 04:48:00 -0500
    H?x?Full-Name: CronDaemon
    H?M?Message-Id: <201112160948.pBG9m0Cb029299@mail.domainname.com>
    H??From: root (Cron Daemon)
    H??To: root
    H??Subject: Cron <root@mail> run-parts /etc/cron.daily
    H??Content-Type: text/plain; charset=UTF-8
    H??Auto-Submitted: auto-generated
    H??X-Cron-Env: <SHELL=/bin/bash>
    H??X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
    H??X-Cron-Env: <MAILTO=root>
    H??X-Cron-Env: <HOME=/>
    H??X-Cron-Env: <LOGNAME=root>
    H??X-Cron-Env: <USER=root>
    I'm really being careful not to break anything that's why am acting a bit to causios when it comes to deleting the content of that directory... Can I please ask you what I should expect to have in that directory or it has to be empty?

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    I believe those are messages from crontab and that would appear to be the case with the information in your output. Take a look at this thread and particularly the second post for details on what's causing it, details on how to remove the folder contents and a link to a method of stopping them.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    Join Date
    Dec 2008
    Posts
    61
    Rep Power
    7

    Default

    Thanks! What a coincidence, I was just following the steps recommended in that link...

    OK, now I have removed the content of that directory and am down to 58%. The /home/backup/zimbra seems to be full, too. Especially a directory called store. Should I delete the content of this directory, too? Thank you in advance

  10. #10
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by tezarin View Post
    The /home/backup/zimbra seems to be full, too. Especially a directory called store.
    I have no idea what that directory is, if you run a backup (do you?) on your server that may be the location that someone stores it.

    Quote Originally Posted by tezarin View Post
    Should I delete the content of this directory, too?
    I really can't give you any advice about whether you should delete it or not. As I mentioned earlier the only fails that zimbra installs are located in the /opt/zimbra directory structure, if any of them are in different locations then a) it's not normal and b) I can't give you advice. I'm afraid you'll have to investigate what those files are, when they were created (and/or updated last). If you really want to remove them then take a backup of the files, stop Zimbra (just in case), do a 'rm -Rf' for the offending directory hold your breath and start Zimbra - but I didn't really advise you to do that. Seriously, you'll have to make that decision yourself after you've investigated what those files are and where they came from.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Similar Threads

  1. zmperditionctl start asking for password
    By k7sle in forum Administrators
    Replies: 32
    Last Post: 02-20-2008, 11:13 AM
  2. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  3. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  4. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 12:34 PM
  5. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 12:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •