Solved

Read mail in queue?

Posted on 2004-09-20
4
846 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 50 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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 video we show how to create an email address policy 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 Mail Flow…

710 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