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.

Any way to count monthly sent mails via mailman?

Discussion in 'E-mail Discussions' started by Kent Brockman, Aug 30, 2010.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello people. I need to count how many mails have been sent by a given mailman list in one given month. Is there any script, console command or software to perform this?
    I tried
    Code:
    exigrep 'newsletter@thegivendomain.com' /var/log/exim_mainlog|grep "<="
    and
    Code:
    zcat /var/log/exim_mainlog.*.gz | grep "<= newsletter@thegivendomain.com" |grep "2010-08"|awk '{print $4}' | uniq | wc -l
    but they are inaccurate and very cpu expensive.
    The watched mailing lists are not setup to archive sent mails, so I have to figure out how to count the total mail sent. Any clue?
     
Loading...

Share This Page