Re: [exim] Need Help

Pàgina inicial
Delete this message
Reply to this message
Autor: John Hall
Data:  
A: John Burnham
CC: Exim-users@exim.org, Miguel Coucello
Assumpte: Re: [exim] Need Help
On 16 December 2011 09:45, John Burnham <John.Burnham@???>wrote:

> >
> > I need a script, or help doing one.
> >
> > I need a script that sends me an email when qeue is bigger than 2.500
> > emails.
> >
> > Can anyone help me ?
> >
> Totally untested and before I've finished my coffee, but here's some
> pseudo code
>
> #!/bin/bash
>
> MSGNO=$(/path/to/exiqgrep -b * | wc -l)
>



exim -bpc is probably a more efficient way of getting the number of
messages in the queue.

regards,
John