Solved

How to manage my MQueue?

Posted on 2006-11-01
2
218 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

770 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