Is it possible to get a total amount of emails in the queue from the command line rather then looking in WHM?
ls -A /var/spool/mail | wc -l isnt very accurrate but it'd be nice if I could find out from a command line
Is it possible to get a total amount of emails in the queue from the command line rather then looking in WHM?
ls -A /var/spool/mail | wc -l isnt very accurrate but it'd be nice if I could find out from a command line
the way that i used:
use:
devide the result by 2Code:ls -l /var/spool/exim/input | wc -l
thats what I use I just typed it wrongThought maybe there was another way
There is a big difference between the 2 commands...
returns: 4776Code:ls -l /var/spool/exim/input | wc -l
returns: 1651Code:exim -bpc
.
And what's the figure shown by WHM Mail Que?
Anup
Great questionCurrent returns are as follows...
returns: 1997Code:ls -l /var/spool/exim/input | wc -l
returns: 236Code:exim -bpc
WHM Queue returns: 236
.
Results self explanatoryOriginally Posted by Host4u2
Anup
Yeppers! The figures don't lie![]()
Or perhaps you could try following for a clearer view
exim -bp | exiqsumm
Anup
Great, and useful stuff to know!
Thanks!
Any clue what the best way would be to dump all queued mail older than a number of days such as 2 days?
Tony Kammerer - Senior Admin, United Communications Ltd.
Proudly hosting over 50,000 customer websites since 1998!
Our lively customer community with over 70,000 posts!
timeout_frozen_after = 7d
Change that to 2 days
timeout_frozen_after = 2d
Yup could try by putting that in top box of WHM Exim Configuration editor as if you edit exim.conf from ssh, it would get overwritten in next exim update
Anup
Though I appreciate the edit, what I need is just a command to run if I happen to run across a server that has lots of old (beyond the number of days set for timeout) mail queued up.
I was contracted to do some clean up work on a server for someone recently and found mail queued that was 89+ days old. And a total of about 12000 emails that were older than 4 days.
Had to dump the entire queue as I could not find a way to delete all old stuff and leave current.
Tony Kammerer - Senior Admin, United Communications Ltd.
Proudly hosting over 50,000 customer websites since 1998!
Our lively customer community with over 70,000 posts!