Solved

Read mail in queue?

Posted on 2004-09-20
4
839 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
Comment Utility
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
Comment Utility
Hi..

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

Thanks
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
Comment Utility
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
Comment Utility
I found out.. The mails are in /var/qmail/queue/mess/

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IMAP and Exchange 2013 4 34
Exchange 2010 out of office & Forward emails 1 54
E-mail DNS SPF records 7 52
exchange 2010 server 19 42
New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
In this video we show how to create a Contact 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 >> Contact ta…
In this video we show how to create an Address List 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 Organization >> Ad…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now