Computer House Home PageList of products and servicesDrivers, Utilities, Info and More!Learn more about Computer House

 How can I clear the mqueue?

 
Answer
 

Mail that is "undeliverable" from the server will be deposited in /var/spool/mqueue directory. This directory can begin to collect a large amount of data, if not maintained. To attempt to resend the email, you can run a bash script from a browser.

1. Copy and paste the following lines into a simple text file.


#!/bin/sh
sendmail -q
echo "Content-type: text/plain"
echo
echo
echo <HTML><BODY>
echo <H2>
echo "Your Mqueue has been cleared."
echo </H2>
echo </BODY></HTML>
echo


2. Name the file "mqueue.cgi" and upload it to your /www/cgi-bin directory.

3. Chmod the file to 755, or executable.

4. Go to the script in a browser by going to http://domain.com/cgi-bin/mqueue.cgi

5. Once you get the response in a browser, ftp to your server, and review the data in the /var/spool/mqueue directory.
Back to Index

The Computer House Technology Center, Inc.
740 South Sixth Avenue
Galloway, New Jersey 08205
(800) 372-6834 --- FAX: (609) 748-9776

Copyright © 2001 Computer House, Inc. All Rights Reserved.