wiceman
asked on
Read mail in queue?
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..
I have a standard plesk qmail installation.
I would like to read the mails that are in queue an then remove/flush them.
Thanks..
ASKER
Hi..
Im using qmail.. is it the same way to do it?
Thanks
Im using qmail.. is it the same way to do it?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I found out.. The mails are in /var/qmail/queue/mess/
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.