cat /etc/virtual/usage/$user.bytes | grep outgoing | awk -F= '{print $4}' | awk -F\& '{print $1}' | sort | uniq -c | sort -n
Tuesday, January 26, 2016
Outgoing Email Counts For DirectAdmin Users
Replace $user with the system user and it will return a count of outgoing mails, per-user for the current day ($user and $user.bytes in this directory reset at midnight)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment