[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Read mail in queue?

Posted on 2004-09-20
4
Medium Priority
?
863 Views
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.

Thanks..
0
Comment
Question by:wiceman
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
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.
0
 

Author Comment

by:wiceman
ID: 12115497
Hi..

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

Thanks
0
 
LVL 40

Accepted Solution

by:
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.
0
 

Author Comment

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

0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Suggested Courses

612 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