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!

Any way to count monthly sent mails via mailman?

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

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,178
    Likes Received:
    6
    Trophy Points:
    168
    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?
     
    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