|
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.
|