Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

cleaning /var/spool/mqueue

SOLVED
Go to solution
Prakash1178
Advisor

cleaning /var/spool/mqueue

Hi,

/var is running 100 % for my server & I need to clean /var/spool/mqueue directory finally.

Mail in this directory "/var/spool/mqueue" are not at all important for me.

Can I delete all files in this directory using rm /var/spool/mqueue/*.* or is there any sophisticated way to do so.

Please suggest.
5 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: cleaning /var/spool/mqueue

Shalom

rm -f /var/spool/mqueue/*

You might want to lock down sendmail so the area does not fill up so easily.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Prakash1178
Advisor

Re: cleaning /var/spool/mqueue

Hi Steven,

Thanks for your reply

Moreover can you please suggest how to lock sendmail

we need to use command " /var/spool/mqueue stop ??


Prakash
Steven E. Protter
Exalted Contributor

Re: cleaning /var/spool/mqueue

/sbin/init.d/sendmail stop

vi /etc/rc.config.d/sendmail

Change the first variable to 1.

You system does not need the sendmail daemon running to send outbound mail. sendmail -aC will push outbound mail off the sysetm.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Prakash1178
Advisor

Re: cleaning /var/spool/mqueue

Many thanks for your QUICK response

Regards,

Prakash
Prakash1178
Advisor

Re: cleaning /var/spool/mqueue

I am really happy by getting this much fast & accurate response.

I am really Impressed by this system and it really made me regular surfer of this forum.

Regards,

Prakash