May 23, 2012
tom

How can I see the contents of the mail who’s ID I get from mailq command?

Question

I used mailq command and I got a line like for example:

A705238B4C   603953 Wed May 23 11:09:58  apache@myserver.com

So, now I’m wondering is there a way where I can “read” an actual content of the mail by it’s id A705238B4C

Asked by Nikola

Answer

The best way is to make use of the postcat command.

postcat -q A705238B4C

At least the system I can look at right now, /var/spool/postfix is the master directory. Subdirectories of that which matter include active, deferred, bounce, etc. Queued files may be stored using the full file name (A705238B4C) or with some level of hashing depth (A/7/05238B4C).

Answered by Jeff Ferland

Related posts:

  1. Export mail que CentOS (mailq log)
  2. Delete from mailq where subject matches
  3. How read mail from /var/spool/postfix/deferred?
  4. Email Problem – mailq
  5. Send mail add command as attachment

Leave a comment