The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script to monitor mail queue?

Discussion in 'Security' started by simonpearce, Mar 9, 2012.

  1. simonpearce

    simonpearce Well-Known Member

    Joined:
    Jun 20, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    The first we hear about someone's account being compromised and sending out spam is often many hours later when we get spamcop (or similar) complaints.

    Does anyone know of a script that can monitor the mail queue and send an e-mail if say the queue reaches 1000 people?

    Or a better way of doing this maybe?

    Cheers
     
  2. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
  3. simonpearce

    simonpearce Well-Known Member

    Joined:
    Jun 20, 2003
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    Thanks - will try out the csf/lfd software mentioned in that thread.

    Cheers
     
  4. blogbytes

    blogbytes Member

    Joined:
    Jul 11, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    /http://servert.wordpress.com/2012/07/09/script-to-monitor-exim-mail-queue/
    Script to monitor exim mail queue | Servertechs

    Alternative install CSF firewall. You can set it to notify you when x emails are being send from a user and block the user temporarily or permanent.
     
  5. Jeff Shotnik

    Jeff Shotnik Well-Known Member

    Joined:
    Oct 10, 2012
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Denver, Colorado, United States
    cPanel Access Level:
    DataCenter Provider
    If you use that script I recommend replacing the binary names with the full path to the binaries or you may end up a spool of 'command not found' cron emails. For example: replace 'exim' with '/usr/sbin/exim'.
     
Loading...

Share This Page