How to manage my MQueue?
Posted on 2006-11-01
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:
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.