?
Solved

Postfix Que

Posted on 2006-06-14
5
Medium Priority
?
728 Views
Last Modified: 2013-12-16
I'm not a linux Guru, but what are the steps of finding out how many items are in the active que in PostFix?

I can SSH just fine - I know that part :), but I need to know what to type at the command line.

Urgent - 500 Points!
0
Comment
Question by:sixdegree
[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
5 Comments
 
LVL 16

Expert Comment

by:xDamox
ID: 16904633
Hi,

You could use the mailq.postfix the man page can be viewed at:

http://www.die.net/doc/linux/man/man1/mailq.postfix.1.html
0
 
LVL 16

Expert Comment

by:xDamox
ID: 16904652
also try running:

mailq

command
0
 

Author Comment

by:sixdegree
ID: 16906501
doing the command of 'mailq' lists out each and every email in there.  I'm looking for a total.
0
 
LVL 25

Accepted Solution

by:
Cyclops3590 earned 2000 total points
ID: 16906536
mailq will actually tell you what is in the entire queue (however the active ones do have an asterisk by the ID number). if you cd to the /var/spool/postfix/active/ directory (might be different place on your box, just find postfix home, then cd to active dir).  then ls the contents, which will give you the ids of the of the msgs actively being processed by postfix. you can use
postcat <msg id>
to view the contents of the msg

fyi, a couple of nice commands to know
>view queue contents
postfix -p
mailq
>flush the queue of all emails (basically through all emails back into active queue)
postqueue -f
>delete a specific email
postsuper -d <msg id>
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 16906770
if all you want is a number of msgs in active queue, technically you can use mailq, just with a couple other commands too

mailq | grep \* | wc -l
0

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

743 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