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.

eximstat and email accounts

Discussion in 'E-mail Discussions' started by Millionade, Oct 5, 2015.

  1. Millionade

    Millionade Member

    Joined:
    Oct 5, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hi guys, hope this isn't a repost and thanks for hosting my question.

    I've been trying to get my head around eximstat, and using this man page: http://manpages.ubuntu.com/manpages/precise/man8/eximstats.8.html

    I can get a lot information going but I'm specifically interested in this section here: "Top 50 local senders by message count"

    However, in this list I can only see the domain's root account, not the email address account beneath it.

    What I'm trying to do is list the "top 20 email accounts by message count", and possibly add an additional filter per each domain.

    Does anyone know how I can achieve this please?
     
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi :),

    You may need to manually create a command like below, which will show the email addresses in queue as per their count:

    exim -bpr | grep "<*@*>" | awk '{print $4}'|grep -v "<>" | sort | uniq -c | sort -n
     
    Millionade likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    There's no native support for an output of the data you are looking for, but you can try using a custom command as referenced in the previous response.

    Thank you.
     
  4. Millionade

    Millionade Member

    Joined:
    Oct 5, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    Hi,

    Thank you for writing this, really appreciate it, I can use the pipe filter here on some of the eximstat logs :)

    But this is just for what is in the queue, is it possible to do the same but for a logfile with eximstat?

    Also, my top sender is still a domain email account, rather than actual email account (I am very clearly not well versed in these matters!).
    For example, top sender is ROOT_USERNAME@DOMAIN.COM, instead of BOB@DOMAIN.COM or KELLY@DOMAIN.COM.

    Thanks again!
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This can indicate messages are coming from a PHP script. The following command will let you know which directories are sending out email through scripts:

    Code:
    awk '/cwd=\/home\// {print $3}' /var/log/exim_mainlog|sort|uniq -c|sort -n
    Thank you.
     
Loading...

Share This Page