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.

Monitoring Outbound SMTP Traffic Per-User

Discussion in 'E-mail Discussions' started by ee99ee, Apr 16, 2006.

  1. ee99ee

    ee99ee Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Does there exist a script to monitor and create reports on per-user (well, per cPanel account) usage of outbound SMTP? If not, how hard would it be to write one? Is information on the account outbound email orginates from logged? Can it be?

    If something like this doesn't exist, any information on where to start putting something like this together would be greatly appreciated...

    -Chris
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Something along that line exists with MailWatch which can provide these reports:

    * Message Listing
    * Message Operations
    * Total Messages by Date
    * Top Mail Relays
    * Top Viruses
    * Virus Report
    * Top Senders by Quantity
    * Top Senders by Volume
    * Top Recipients by Quantity
    * Top Recipients by Volume
    * Top Sender Domains by Quantity
    * Top Sender Domains by Volume
    * Top Recipient Domains by Quantity
    * Top Recipient Domains by Volume
    * SpamAssassin Score Distribution
    * SpamAssassin Rule Hits
    * MCP Score Distribution
    * MCP Rule Hits
    * Audit Log

    Chirpy on this forum has integrated MW into his cPanel/MailScanner package.
    http://www.configserver.com/cp/msfe.html

    Alternately you can use MW separately and install from source.
    http://mailwatch.sourceforge.net/doku.php
     
  3. ee99ee

    ee99ee Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    I don't use MailScanner, we have a third-party system that scans all incoming mail before it hits the server for AV and spam. Do I need to run MailScanner to use this?

    -Chris
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    No. MailWatch can be installed separately.
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Did you want to monitor or limit? Cpanel has a limit built in, so it must be counting outgoing emails (well, cpanel would be using exim to do the counting). There's probably a way to see these counts, not sure what it is.

    In case it's useful, the cpanel limits can be modified by editing /var/cpanel/maxemails and adding lines like domain.com=nnnn
    where nnnn is the new limit for that domain.
     
  6. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    exim.pl counts the limits in your domlogs/domain-smtplog traffic
    Take a look at exim.pl I can probably cook up something that you just enter the domain and it tells you the amount sent per hour, day, week and month.
     
  7. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    Does this include mail sent from cpanel webmail and/or webforms (user nobody) on that domain as well?

    I'm asking because looking at the log file dates I noticed some of them were updated fairly recent on accounts that are not configured to use the server's smtp, but to use the ISP smtp server instead.
     
  8. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    My guess is yes it should count nobody message since Apache runs as nobody by default for cpanel.
     
Loading...

Share This Page