Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-2011, 08:31 AM
Active Member
 
Posts: 37
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
Reply With Quote
  #2 (permalink)  
Old 12-15-2011, 09:22 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
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
Reply With Quote
  #3 (permalink)  
Old 12-15-2011, 10:49 AM
Active Member
 
Posts: 37
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
Reply With Quote
  #4 (permalink)  
Old 12-15-2011, 11:02 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
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
Reply With Quote
  #5 (permalink)  
Old 12-16-2011, 07:14 AM
Active Member
 
Posts: 37
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?
Reply With Quote
  #6 (permalink)  
Old 12-16-2011, 08:27 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
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
Reply With Quote
  #7 (permalink)  
Old 12-16-2011, 08:52 AM
Active Member
 
Posts: 37
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?
Reply With Quote
  #8 (permalink)  
Old 12-16-2011, 09:27 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
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
Reply With Quote
  #9 (permalink)  
Old 12-16-2011, 10:11 AM
Active Member
 
Posts: 37
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
Reply With Quote
  #10 (permalink)  
Old 12-16-2011, 10:25 AM
Elite Member
 
Posts: 334
Default

Quote:
Originally Posted by tezarin View Post
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
What is the content of your /home/backup/zimbra? Is this Zimbra backup folder or one of your Zimbra data volume?

store folder usually used by Zimbra mailbox, I strongly advise you to look further the folder before trying to delete store folder to avoids human error on data deletion .
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.