[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to manage my MQueue?

Posted on 2006-11-01
2
Medium Priority
?
225 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
[X]
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
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

656 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