1

Topic: in progress emails

how can i know how much emails are in progress?
i mean is there any command to know the count of emails in quine!?

2

Re: in progress emails

What Linux distro are you using?
In Ubuntu 12.04,
The commnad "mailq" will show the number of deferred emails and some details about each mail.
The list of currently active mails in the queue are in  /var/spool/postfix/deferred/ and /var/spool/postfix/active
You can count the number of entries in there using the commands:
find /var/spool/postfix/deferred/ -type f | wc -l
find /var/spool/postfix/active/ -type f | wc -l

3

Re: in progress emails

thank you

here are the result
root@mail:/# find /var/spool/postfix/active/ -type f | wc -l
11498

this mean there are 11498 mail pending for send!?

how can i delete all emails in the list!?

4 (edited by nerdtron09 2013-10-03 10:39:10)

Re: in progress emails

I experienced higher than this. But before you proceed, you should know,
These emails haven't been processed  yet, are you sure you want to delete them?
And you might want to look who/which server is the source of emails?

I don't want to lose mail from clients so i went to the safe route and waited for all mails to be finished. Just monitor the output of that commad every 30 mins or so and see if the number decreases.

At your own risk:
If you really wanted to remove mails from the queue, this link has the answer http://www.garron.me/en/linux/delete-pu … stfix.html