eximstat and email accounts
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: 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?
-
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 0 -
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. 0 -
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
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!0 -
For example, top sender is ROOT_USERNAME@DOMAIN.COM[/EMAIL], instead of BOB@DOMAIN.COM[/EMAIL] or KELLY@DOMAIN.COM[/EMAIL].
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:awk '/cwd=\/home\// {print $3}' /var/log/exim_mainlog|sort|uniq -c|sort -n
Thank you.0
Please sign in to leave a comment.
Comments
4 comments