Skip to main content

Wanting to count number of emails a single account sends in X time

Comments

1 comment

  • cPanelMichael
    Hello, First, I'd like to provide you with some information about a new feature in cPanel version 68: Large Amount of Outbound Email Detected notification In cPanel & WHM version 68, we added the Large Amount of Outbound Email Detected notification to WHM's Contact Manager interface (WHM >> Home >> Server Contacts >> Contract Manager). The system counts every user's outbound messages every 15 minutes. It will send a notification when a mail user exceeds the preconfigured threshold of 500 unique outbound messages over the previous hour (excluding mailing lists). This will help the administrator detect potential spammers or compromised accounts. Notes: [LIST]
  • This notification defaults to disabled on existing systems and enabled for new installations.
  • We do not currently offer the option to configure the threshold.
    This allows you to receive an email notification if an individual email account exceeds 500 unique outbound messages in an hour. As far as your custom script, the WHM API 1 function you may find useful is: WHM API 1 Functions - emailtrack_search - Software Development Kit - cPanel Documentation Or, if you were willing to spend some more time developing a custom script that scans for eximstats data, you can take a look at the following file for an example of how we collect eximstats data:
    /usr/local/cpanel/scripts/eximstats_spam_check
    There's also a thread here you may find helpful: Fetch data from sqlite database Thank you.
  • 0

Please sign in to leave a comment.