LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to clear out /var/spool/clientmqueue (https://www.linuxquestions.org/questions/linux-software-2/how-to-clear-out-var-spool-clientmqueue-485016/)

jerlinuxdude 09-19-2006 12:34 PM

how to clear out /var/spool/clientmqueue
 
I recently ran out of disk space on my FC4 system. When I invesitgated this, I found that /var/spool/clientmqueue was occupying 14GB of disk space (as revealed by issuing "du -h" in /var/spool).

When I try to us ls on the directory, the system just hangs there. When I try to "rm -f /var/spool/clientmqueue/*" after a few seconds my terminal screen closes on me.

So far, nothing I tried has helped me to clean out that clientmqueue directory. Any suggestions? Please!!

Thanks.

trickykid 09-20-2006 05:03 AM

Try using mailq to see if there is any queued mail messages on the system. Is this system setup as an actual mail server?

jerlinuxdude 09-21-2006 09:37 AM

Quote:

Originally Posted by trickykid
Try using mailq to see if there is any queued mail messages on the system. Is this system setup as an actual mail server?

I tried using the "mailq -Ac" command, but it seems to hang... takes forever to display any results. In fact, I am typing this while waiting for the results.

This server is not a mail server at all. It's primary role is to run MRTG for monitoring bandwidth in all segments of our network.

Thanks.

venikathir 09-23-2011 08:53 AM


please check the /etc/sysmail/sendmail DAEMON=yes ?
else make it yes and restart ur sendmail then see every thing will flush

check before ur sendmail config

mta and msp are ok


dmarco 03-29-2012 02:02 AM

Just delete the files there.
 
cd /var/spool/clientmqueue; find . -type f | xargs rm -rf

and add an entry to the crontab.


All times are GMT -5. The time now is 10:13 PM.