Improve company productivity with a Business Account.Sign Up


Read mail in queue?

Posted on 2004-09-20
Medium Priority
Last Modified: 2013-12-17
I have 20 mails in queue.. they have been there like forever..

I have a standard plesk qmail installation.

I would like to read the mails that are in queue an then remove/flush them.

Question by:wiceman
  • 2
  • 2
LVL 40

Expert Comment

ID: 12108371
On the guess that you are using Sendmail as the MTA...

Messages that are en-queue are composed of two files. One starts with qf and contains the envelope data for the message (Sender, recipients, etc). The other starts with df and contains the body of the message. The common link for the two parts of a message is the queue ID, that string that follows the qf/df. Both of these files are ordinary text files and can be read with more, cat, or any text editor. You'll have to do the interpolation of data in the qf and df files relating to sender, recipient, and content.

FYI: It isn't uncommon to find partial messages (only a qf or a df file or other remnants) in /var/spool/mqueue. Those represent failed mail transactions and anything older than the queue interval (normally 4 days) can be safely deleted.

Author Comment

ID: 12115497

Im using qmail.. is it the same way to do it?

LVL 40

Accepted Solution

jlevie earned 150 total points
ID: 12118479
I can't say, since I always use Sendmail. On a Sendmail system you  might see something like:

wilowisp# ls /var/spool/mqueue
dfi8HHebcs021118  dfi8HJuIn8025793  qfi8HHebcs021118  qfi8HJuIn8025793
dfi8HHebcs021119  dfi8HK19dk018536  qfi8HHebcs021119  qfi8HK19dk018536

If your /var/spool/mqueue looks similar the files sould be similar in content.

Author Comment

ID: 12118848
I found out.. The mails are in /var/qmail/queue/mess/


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
There’s hardly a doubt that Business Communication is indispensable for both enterprises and small businesses, and if there is an email system outage owing to Exchange server failure, it definitely results in loss of productivity.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

605 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