Operating System - HP-UX
1748261 Members
3586 Online
108760 Solutions
New Discussion юеВ

Re: 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 5
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