<div dir="ltr">Yeah I used to run a bunch of shellscript that actually walk through the logs and shows the count of incoming/outgoing mail for distinct emails. <div><br></div><div>As an example, this one uses ctladdr to check who sent how many emails in the last 9999 log lines<br><div><br></div><div>tail -9999 /var/log/maillog | grep "ctladdr" | awk -F',' '{ print $2 }' | awk '{ print $1 }' | grep ctladdr | sort | uniq -c <br></div><div><br></div><div>Anyway in my personal experience i find it best to limit the email rates sendmail milter level and only allow a certain emails to get in/out per hour because when an account gets spammed most of the time its overnight, you only realize it in the morning when your IP address is already on all spam lists and 300 people calling at the same time.<br></div><div><br></div><div>So IMHO its best to enforce some strict guerilla tactics if you're dealing with spammy customers like lowering the number of CC/BCC addresses at sendmail level and implement some milter-limit.</div><div><br></div><div>^^^^^^^ This is bound to break things if not done properly and might not survive a version update! Im just sharing my experience and a different view on things :D</div><div><br></div><div>Good luck!</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-02 6:47 GMT+01:00 Tigerwolf <span dir="ltr"><<a href="mailto:tigerwolf@tigerden.com" target="_blank">tigerwolf@tigerden.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 1 Apr 2015, Jeff Keller wrote:<br>
<br>
> Is there no way to get "top senders" (either by user or domain) from the<br>
> GUI?<br>
<br>
</span>I don't know of anything off the shelf, but if you trust the sendmail logs<br>
to reflect who sends what, I'd think a script to parse the log by sender,<br>
then count the results along the general idea of:<br>
<br>
     For usernames in userlist<br>
       echo username<br>
       grep -c "from=username" /var/log/maillog<br>
<br>
If you want to see it from a browser, then just make an html template page<br>
and have the script stuff it's output into the template.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</a><br>
<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" target="_blank">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Um abraço,<br>Gustavo</div></div></div></div>
</div>