Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to manage my MQueue?

Posted on 2006-11-01
2
219 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 50 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 75 total points
ID: 17856735
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

809 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