[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to manage my MQueue?

Posted on 2006-11-01
2
Medium Priority
?
227 Views
Last Modified: 2013-12-03
Hi:

On my server (a P-IV Linux Centos / Sendmail / Apache) sometimes, I realized that its /var/spool/mqueue is with tons of files like this:

dfi312cBcW004659
Qfi312cBcW004659
dfi332EmcW015839
Qfi332EmcW015839

And more than this, a great number of them, I don't know why, is dated from many days ago, sometimes, weeks ago. My questions:

1) Why does it happen? Why these files are not delivered or erased past 4 or 5 days?

2) Does anyone know a Script I could run whenever I want, at command line (in Bash or Perl or something else) to erase some of them (for instance based mainly on their creation dates)?

Thanks a lot.

Mario Lima./
0
Comment
Question by:multisites
2 Comments
 
LVL 14

Assisted Solution

by:ygoutham
ygoutham earned 200 total points
ID: 17855817
these are the spooled mail files waiting to get out.  do a cat and you would see the contents.  

you can always try out a

sendmail -q -v

to flush the pending mails out.  any specific error would be given on screen (or see /var/log/maillog for more details)

decide to delete specific files after reading through the files.

goutham
0
 
LVL 10

Accepted Solution

by:
ssvl earned 300 total points
ID: 17856735
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month20 days, 8 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question