Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Get notified when queue exceeds more than 500 emails

Discussion in 'E-mail Discussion' started by ::Gomez::, Mar 26, 2015.

  1. ::Gomez::

    ::Gomez:: Member

    Joined:
    Oct 13, 2003
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi, I am looking for a simple way to get notified each time the email queue gets full with 500 emails or more..

    How can I achieve this?

    I have installed Config server mail queue manager but it doesnt have this option.
     
  2. Patrick Heinz

    Patrick Heinz Active Member

    Joined:
    Mar 14, 2015
    Messages:
    34
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi hermano,
    Didn't tried, but you can do some like this script:

    Code:
    #!/bin/bash
    queue=`/usr/sbin/exim -bpc`
    
    if [ $queue -gt "500" ]; then
          mail -s "Queue alert!" some@email.com
    fi 
     
    triantech likes this.
  3. ::Gomez::

    ::Gomez:: Member

    Joined:
    Oct 13, 2003
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks will try It!

    I save it as .cgi ?
     
  4. Patrick Heinz

    Patrick Heinz Active Member

    Joined:
    Mar 14, 2015
    Messages:
    34
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Brasil
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,
    Its a shell script. So you can save as .sh, and add on your crontab, setting the time you will prefer to check the queue.
    Crontab examples
     
  5. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    290
    Likes Received:
    21
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    If you also have Config Server Firewall running, you can just set the LF_QUEUE_ALERT option.
     
    Patrick Heinz likes this.
  6. ::Gomez::

    ::Gomez:: Member

    Joined:
    Oct 13, 2003
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    153
    Location:
    Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    That´s exactly what I was looking for. Thanks a lot kdean.
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,435
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I am happy to see you were able to find a suitable solution. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice