Solved

How to manage my MQueue?

Posted on 2006-11-01
2
214 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
Comment Utility
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
Comment Utility
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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.:

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now