Operating System - HP-UX
1850259 Members
2939 Online
104053 Solutions
New Discussion

Deleting /var/spool/mqueue

 
Manuales
Super Advisor

Deleting /var/spool/mqueue

can i delete all located in
/var/spool/mqueue ?

Thanks, Manuales.
11 REPLIES 11
Sanjay_6
Honored Contributor

Re: Deleting /var/spool/mqueue

Hi,

Everything under /var/spool/mqueue belongs to the sendmail subsystem.

There will be two files for each mail sent from your system. Deleting them from /var/spool/mqueue means those mail which have not been sent yet will never be sent.

Hope this helps.

Regds
Manuales
Super Advisor

Re: Deleting /var/spool/mqueue

Hi SanJay ...

why are there the messages in /var/spool/mqueue?
probably not exist the e-mail?
or why?

Thanks, Manuales :0)

Manuales
Super Advisor

Re: Deleting /var/spool/mqueue


I have like 20 files for every second !!!!
Sanjay_6
Honored Contributor

Re: Deleting /var/spool/mqueue

Hi,

Do "mailq". this will list all the mails stuck into the queue. If you can clear the mail queue, that will clear the queue.

Hope this helps.

Regds
Manuales
Super Advisor

Re: Deleting /var/spool/mqueue

SanJay.. help me please !!!

i atached an image for your check ...
there are many sendmails daemons is correct?
and every second are many files ..
could be better restart sendmail daemon?
how do i do this if this is correct?

Thanks, Manuales
Manuales
Super Advisor

Re: Deleting /var/spool/mqueue

also .. i feel the system very low... i can see many processes called sendmail with top and ps -fea | grep sendmail ..

probably they are consuming many memory because system is very low when i type a command ...

Thanks, Manuales
Manuales
Super Advisor

Re: Deleting /var/spool/mqueue

please .. help !!!
Christine Hartman
Valued Contributor

Re: Deleting /var/spool/mqueue

Manuales,

if there are no more jobs in your mailq then I would stop sendmail and restart it...before restarting it...do a ps -ef |grep sendmail and make sure all of those processes are gone. Then restart it back up cleanly. Also check the ITRC for sendmail patches.....we've had sendmail issues before where messages would get deferred for a long time and sit in the mailq...we entered a cronjob to flush the mailq every 45 min...after applying the latest patch bundles we don't seem to be having that issue anymore.
Something to consider.

Manuales
Super Advisor

Re: Deleting /var/spool/mqueue

Hi .. how can i kwnow who is making many files on /usr/spool/mqueue ? for any times it generates like 20 at same time !!

Thanks, Manuales.
Manuales
Super Advisor

Re: Deleting /var/spool/mqueue

with top command i saw a proccess running called "vxfsd" , what is the use of this command on system??

Thanks, Manuales.
Geoff Wild
Honored Contributor

Re: Deleting /var/spool/mqueue

Is this box on the internet?

First - I would stop sentmail:

/sbin/init.d/sendmail stop

Then, check the maillog:

tail -1000 /var/adm/syslog/mail.log

That should tell you who is the culprit...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.