1834253 Members
2189 Online
110066 Solutions
New Discussion

Re: /var/spool/mqueue

 
yuli_3
Advisor

/var/spool/mqueue

all,

in my server hpux 11.11, /var/spool/mqueue growth fastly that consists of queue of mails and /var reach up to 100%. I remove all in /var/spool/mqueue directory. How to prevent this problem without doing "rm *"??

regards,

yuli
4 REPLIES 4
Mel Burslan
Honored Contributor

Re: /var/spool/mqueue

most probably an application is sending emails to users which are not deliverable.

First thing you can look into properly configuring sendmail to deliver these mail messages instead of keeping them in the mail spooler until you blow up /var with 100% capacity.

If this is not a feasible solution and you don't care if these messages gets delivered or not, you can create a small (few megabytes big) filesystem and mount it under /var/spoolmqueue. and do not care about it or run "rm /var/spool/mqueue/*" command frequently from the cron.

The ultimate solution is to find the application which is trying to send these emails and either stopping them or directing the mail to the /dev/null.
________________________________
UNIX because I majored in cryptology...
Joseph Loo
Honored Contributor

Re: /var/spool/mqueue

hi,

your mail queuing is cause by either the smtp services is down or your application which sends out email is causing this queue.

most drastic is to shutdown SENDMAIL services or u could check if the smtp service is down.

u may also like to restart SENDMAIL once the smtp service is running:

# killsm
# /sbin/init.d/sendmail start

regards.
what you do not see does not mean you should not believe
yuli_3
Advisor

Re: /var/spool/mqueue

sometimes /var/spool/mqueue have 2GB size, /var have 4GB size. how to configure sendmail so if message cann't be send after..for example 5 hours, this message will be deleted or sync to /dev/null ??
Bejoy C Alias
Respected Contributor

Re: /var/spool/mqueue

Check 'mailq' and see what is the reason for not sending the queued mails . It will be better to solve this pblm first , instead of rm'ing the /var/spool/mqueue.
Be Always Joy ......